Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Sep 2003
    Location
    Sydney
    Posts
    114
    Member #
    3051
    Ok...

    http://www.pacesettertravel.com/pacesetter/

    I'm trying to get the red links bar to center across the DIV...I've tried align=center and margin:auto on almost every tag/CSS piece but no luck!

    Anyone able to check out the code and see what they can figure out?

    Thanks!

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    If you set each li to display: inline, theoretically you could do text-align: center on the ul or its container.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Senior Member
    Join Date
    Sep 2003
    Location
    Sydney
    Posts
    114
    Member #
    3051
    Thanks for that...but (if I understood correctly), it doesn't do too much...

  5. #4
    Senior Member
    Join Date
    Aug 2006
    Posts
    131
    Member #
    13656
    All the list items should be inside a div...

    You can do something that should look like this...

    HTML Code:
    <div style="position: relative; width: 700px; margin:0px auto">
      <ul>
         <li><a href="#">Menu Item Goes here</a></li>
      </ul>
    </div>
    Make sure that the position is set to relative or this isn't going to work. Also make sure you have a proper URI/Doctype set and xml name space set to something like...

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    This should solve your problem...
    Christopher Carvache
    Web Developer / SEO
    Northeast Web Design
    +1.860.906.7802

  6. #5
    Senior Member
    Join Date
    Sep 2003
    Location
    Sydney
    Posts
    114
    Member #
    3051
    Cheers mate! Will give it a go, however, I stumbled across another drop down menu which seems to do the trick for me.

    Thanks again.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:11 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com