Putting a header around a floating navigation bar?

Discussion in 'CSS' started by Rahul Bose, Jul 8, 2010.

  1. #1
    I am a beginner with CSS, so if this question is stupid, please don't pay it too much mind. I am attempting to put a heading in the center of my page around a navigation bar that I have floating to the left, but it is not working. When I clear the float, it is stuck in one spot below the float. I cannot position the heading where I want. And if I try to use a div align, I get it off center and pretty much unmovable. If I use positioning on the header, I can only move it up and down, not into the center. So how can I counter that pesky floating nav bar?
     
    Rahul Bose, Jul 8, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Perhaps you can style "margin: 0 auto; to your container div and for text-align:center to your body (in the stylesheet)
     
    radiant_luv, Jul 9, 2010 IP