WordPress.org

Ready to get started?Download WordPress

Forums

Please help me with this div thingy, PLEASE! (8 posts)

  1. allthewhile
    Member
    Posted 9 years ago #

    I can't get this thing to be the proper width no matter what I do.

    http://www.stmichaelspod.com/

    It's the navigation bar at the top of the page.

    -jayson

  2. oriecat
    Member
    Posted 9 years ago #

    Well your #menubar says width:750. What have you tried changing it to? Does it maybe need to say 750px? How about trying a percentage?

  3. thinsoldier
    Member
    Posted 9 years ago #

    this will fix it

    #menubar { display: block; text-transform: uppercase; width: 740px;margin:auto; font-family: 'Arial Black'; }

    750 was too big, your #page is that large but you define the visible borders with your images, the image header is wider than the shadows u see on the sides of it. so 750 or 100% would stretch it the full width of the containing div. Making it 740 made it the same width but aligns it to the left(default). Margin:auto makes it float in the middle.

  4. allthewhile
    Member
    Posted 9 years ago #

    I've tried all of those. If I switch it to 750px it does nothing. If I change the width I can almost get it perfect, but not quite. There is still some missing space in i.e. It looks great in firefox.

    thanks in advance for anymore guidance.

  5. thinsoldier
    Member
    Posted 9 years ago #

    oh, yeah, I forget I had IE. Lemme check.
    btw, which version of IE are u using.

  6. thinsoldier
    Member
    Posted 9 years ago #

    I only see 1 pixel of space difference on the left in IE.
    Is that what you see?

    I just made the width 751px margin:auto, now ther's a tiny tiny difference in firfox, but its black right up againt he shadow, so not very noticeable. And in my IE it looks fine

  7. thinsoldier
    Member
    Posted 9 years ago #

    forget the margin auto, u changed something else, margin auto helps no more.

  8. allthewhile
    Member
    Posted 9 years ago #

    lol sorry, I was switching things around. I'll try your solution. I think I got it working now though. You rule.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.