Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Content box keeps changing width and I can't see why?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #156903
    stw2011
    Participant

    Hi,

    Again, I am really new to this and the wordpress combined with the CSS is really messing me up

    On my home page the content box below the ribbon is a good width.
    http://evanography.com/wp/

    When I go to some pages like: http://evanography.com/wp/#!/airport-information/fuel-oil-prices/

    The box changes to a much smaller width. I tried using Firebug and I still can’t find where it is doing that in the code. Any help would be greatly appreciated. Thank you so much everyone.

    #156912
    noahgelman
    Participant

    Your “.single_container” which has your content is positioned absolute. This causes divs to collapse and not be 100% wide. You need to add a width value to it to make sure it stretches all the way across.

    The home page stretched across because of the wide image. In your 2nd link there’s only the table so it only stretches so far.

    Sometimes in css it’s the not the addition of styles that breaks a page, but the lack of styles.

    #156925
    stw2011
    Participant

    Thank you so much I added #main-content, .single_container, .comments_container { position:absolute; margin: 0 -6px; width:980px;}

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.