Results 1 to 5 of 5

Thread: trouble centering menu

  1. #1
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default trouble centering menu

    I am at my wits end trying to center a menu (menu for 'Workshops Available').
    Would someone please look at my coding?
    http://lindaconover.com/kris/workshops.html
    Thank you, Wina

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    oooo, ouch! <font> tags. That hurts my eyes :-p

    CSS:
    Code:
    #menu_ws {
    	margin:0 auto;
    	text-align:center;
    }
    
    #menu_ws ul {
    	color:#fff;
    }
    
    #menu_ws h1 {
    	margin:0;
    	font-size:16px;
    }

    HTML:
    Code:
    <div id="menu_ws">
    	<ul id="tablist">
    		<li>
    			<a class="tab" href="#" onclick="return expandcontent('sc1, this)"><h1>Workshops Available</h1></a>
    		</li>
    		<li><a class="tab" href="#" onclick="return expandcontent('sc2', this)">&ldquo;Serendipity In A Cup&rdquo;<br />
    			Color  Essence for Hand Weaver</a></li>
    		<li><a class="tab" href="#" onclick="return expandcontent('sc3', this)">&ldquo;Esoteric Cloth&rdquo;<br />
    			Surface Design for  Handweavers</a></li>
    		<li><a class="tab" href="#" onclick="return expandcontent('sc4', this)">"Arashi!"</a></li>
    		<li><a class="tab" href="#" onclick="return expandcontent('sc5', this)">“Chroma Rhumba!”<br />
    			Technicolor Dance Around the Color Wheel</a></li>
    	</ul>
    </div>
    Add that CSS to the bottom of your stylesheet. Replace your entire menu block with the HTML above.

  3. #3
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default left aligned in Firefox, Off center in IE

    Thank you so much Medyman for looking at my code. (I checked and couldn't find anymore font tags to remove.. teehee)

    I did as you suggested and in Firefox the block is left aligned. And in IE7.0 it didn't make any difference?

    A confused, self-taught beginner ~ Wina

    http://lindaconover.com/kris/workshops1.html

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Ahh, I see what's happening.

    You can either changed the width of the #menu_us div, or center the unordered list inside.

    So do either of these:
    Code:
    #menu_ws {
        width:300px //  you'll have to set this to w/e the width of your menu us, trial and error :)
    }
    or

    Code:
    #menu_ws ul {
        margin:0 auto;
    }
    I *think* those should work. The 1st one definitely will.

  5. #5
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thank you!

    The first one did the trick.
    Thanks, Wina

Bookmarks

Posting Permissions

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