Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2007
    Location
    baltimore, md
    Posts
    41
    Plugin Contributions
    0

    Default Text should wrap instead of overlap

    Hello! I'm sure this is a stylesheet issue... The problem is that on my product info pages, depending on the size of the browser window, the text sometimes overlaps the image. I would like the text to wrap no matter what size the window is, even if the text ends up being 0.5" wide!

    I found a post about this which suggested changing the margins for #productMainImage. I have my current stylesheet.css margins for that set to .5em 1em 1em .5em. However, I am also using the Product Info Mod Left Side, which has its own settings for the margins for #productMainImage in a separate product_info.css stylesheet. Those are margin:1.5em 1em 1em 0. However, I believe I was having this problem even before the mod.

    I am new to CSS, so I'm hoping this is something very simple to fix!

    See an example at http://www.chacha-vintage.com/shop/i...roducts_id=201.

    Thanks so much!!

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Text should wrap instead of overlap

    There is no cross-browser way of achieving this in CSS. Ultimately, when a site is compressed beyond that with which it can cope, it has to break somehow and browsers generally regard overlapping text onto images as the least worst way of coping. You might have been able to get close if IE supported the min-width style, but sadly, even IE7 doesn't.

    You can however, exercise more control over how it breaks. If instead of using width:20% on #imagebox, which actually encourages the text to overlap the picture when the total width narrows to the point where 20% becomes less wide that the image, you could set the width in pixels no less than the width of the image.

    If you then float #productbox to the left (instead of to the right) then when there isn't enough space for the text, it will drop neatly underneath the image, instead of walking all over over it.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Feb 2007
    Location
    baltimore, md
    Posts
    41
    Plugin Contributions
    0

    Default Re: Text should wrap instead of overlap

    Hello, Kuroi! Thanks so much for the help! This did make the item description go beneath the photo.

    However, now I am concerned that maybe my medium photos are too big! On a "typical" monitor (which I don't own myself!), I would want the text to show up next to the photos. Is there some sort of guideline to know whether it will??

    My current medium photo size is 252 x 252 (some of which is blank depending on the orientation of the photo).

    You can check it out at www.chacha-vintage.com/shop and click into any of the categories.

    Thank you!

  4. #4
    Join Date
    May 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Text should wrap instead of overlap

    Where can I find the vales for #imagebox and #productbox? I assumed they were in the stylesheet.css file, but I wasn't able to find them there.

  5. #5
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    1,029
    Plugin Contributions
    5

    Default Re: Text should wrap instead of overlap

    @mcb.. I'm assuming you also have that add-on module. If so, you should be looking into the "product_info.css" stylesheet instead.

  6. #6
    Join Date
    May 2007
    Posts
    93
    Plugin Contributions
    0

    Default Re: Text should wrap instead of overlap

    Quote Originally Posted by Sketchy View Post
    @mcb.. I'm assuming you also have that add-on module. If so, you should be looking into the "product_info.css" stylesheet instead.
    "add-on" module? which one?

    Gerry

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Text should wrap instead of overlap

    Quote Originally Posted by gcampos View Post
    "add-on" module? which one?
    The "Product Info Mod Left Side" mod to which chacha-vintage refers in the post that started this thread.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #8
    Join Date
    May 2007
    Posts
    93
    Plugin Contributions
    0

    Default Re: Text should wrap instead of overlap

    Kuroi,

    Sorry didnt read the message fully, now I see it. Where is this mod, I looked in downloads but dont see it.

    Gerry

  9. #9
    Join Date
    May 2007
    Posts
    93
    Plugin Contributions
    0

    Default Re: Text should wrap instead of overlap

    nevermind, did a search and found it, sorry, having a bad brain fart day.

  10. #10
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Text should wrap instead of overlap

    Don't worry we all have them. Me more than most
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. v150 Text overlap in new products for january
    By discoverytdi in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Jan 2012, 07:36 PM
  2. Truncate instead of wrap category names in sidebox
    By pharry in forum General Questions
    Replies: 3
    Last Post: 12 Jul 2009, 09:22 PM
  3. Text overlap's the image
    By FluffyTheCat in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 May 2008, 08:19 PM
  4. My review text field overlap others column
    By pinkystation in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Feb 2008, 12:41 PM
  5. Weird Text Wrap Problem in Review Text area...
    By Peace Freak in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 11 Oct 2006, 12:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg