I''ve been following along just fine with the depot app, up until I make the catalog, where, when the price is displayed with formatting, the price shows up underneath the <div> bar for the next item in the catalog. If, in index.rhtml, I change the <span class="price"> to just <span>, or equivalently, remove the entire <span...> tag, it works just fine, but with no font/color modification. I can''t quite figure out where the problem lies, so any help would be appreciated. -- Posted via http://www.ruby-forum.com/.
If you post your css code & rhtml code it would help to see what the problem may be. thanks, will clark // graphic design www.willclarkdesigns.com/ will@willclarkdesigns.com 559 | 584 6785 559 | 380 2731 [ facsimile ] On Jun 10, 2006, at 8:40 AM, Ben Brightwell wrote:> I''ve been following along just fine with the depot app, up until I > make > the catalog, where, when the price is displayed with formatting, the > price shows up underneath the <div> bar for the next item in the > catalog. > > If, in index.rhtml, I change the <span class="price"> to just > <span>, or > equivalently, remove the entire <span...> tag, it works just fine, but > with no font/color modification. I can''t quite figure out where the > problem lies, so any help would be appreciated. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060610/554896c8/attachment-0001.html
Sorry, because I need to give you a quick answer here (no time to trace back my own work) but I had the same issue. Strangely enough a few iterations forward seemed to automagically correct that issue. Hope this helps and appologize for the quick answer but it seemed like some formatting was added on in the iterations that corrected it. Stuart On 6/10/06, Ben Brightwell <neogia4@gmail.com> wrote:> > I''ve been following along just fine with the depot app, up until I make > the catalog, where, when the price is displayed with formatting, the > price shows up underneath the <div> bar for the next item in the > catalog. > > If, in index.rhtml, I change the <span class="price"> to just <span>, or > equivalently, remove the entire <span...> tag, it works just fine, but > with no font/color modification. I can''t quite figure out where the > problem lies, so any help would be appreciated. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060610/a9eb4c67/attachment.html
Thanks for the help, @Dark Ambient: Glad to know I''m not the only one. Here''s my code if someone wants to take a look: [index.rhtml] <h1>Your Pragmatic Catalog</h1> <% for product in @products -%> <div class="entry"> <img src="<%= product.image_url %>"/> <h3><%= h(product.title) %></h3> <%= product.description %> <span class="price"><%= product.price %></span> </div> <% end %> [depot.css (truncated)] #store .entry { border-bottom: 1px dotted #77d; } #store .title { font-size: 120%; font-family: sans-serif; } #store .entry img { width: 75px; float: left; } #store .entry h3 { margin-bottom: 2px; color: #227; } #store .entry p { margin-top: 0px; margin-bottom: 0.8em; } #store .entry .price-line { } #store .entry .add-to-cart { position: relative; } #store .entry .price { color: #44a; font-weight: bold; margin-right: 2em; float: left; } Thanks in advance for any help. Will Clark wrote:> If you post your css code & rhtml code it would help to see what the > problem may be. > > thanks, > will clark // graphic design > www.willclarkdesigns.com/ > > will@willclarkdesigns.com > 559 | 584 6785 > 559 | 380 2731 [ facsimile ]-- Posted via http://www.ruby-forum.com/.