View Single Post
  #14 (permalink)  
Old Apr 12th, 2007, 14:12
karinne's Avatar
karinne karinne is offline
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Is there an alternitive to 'Float:Center'

Quote:
Originally Posted by mmfraser View Post
Ive found out how to center things, if anyone needs it:
Code: Select all
 margin-left: auto;
margin-right: auto;
Well ... again ... if you would have read Post #4 and the links provided, you would've had that answer already.

Code: Select all
margin: auto;
no need for margin-left and margin-right.

Quote:
Originally Posted by mmfraser View Post
ive fixed it
http://marc-online.co.uk the buttons are a bit skewed up in IE, i dont know why, but thats 1 problem solved. i had:
Code: Select all
<div id="maincontents"/>
<div id="sidebar"/>
it wasnt closing the div so that is why the two boxes were going inside each other.

now i have got:
Code: Select all
<div id="maincontents"></div>
<div id="sidebar"></div>
Now... again ... if you would have read posts #4 and #9 you would have knows this!

Again ... your menu should be a list

Code: Select all
<div id="navigation">
<ul>
  <li><a href=""><span>Home</span></li>
  <li><a href=""><span>Forum</span></li>
  <li><a href=""><span>DAFC News</span></li>
  <li><a href=""><span>Pictures</span></li>
  <li><a href=""><span>Links</span></li>
  <li><a href=""><span>Contact Us</span></li> 
  <li><a href=""><span>News Archives</span></li> 
  <li><a href=""><span>Site Login</span></li>
<ul>
</div>
css would be something like

Code: Select all
#navigation ul {
   list-style: none;
   padding: 0;
   margin: 0;
}

#navigation ul li {
   float: left;
   height: 25px;
}

#navigation ul li a {
    display: block;
    text-decoration: none;
}

#navigation ul li a span {
   display: none;
}

#navigation ul li a.home {
   background: url(home.jpg) no-repeat 0 0;
   width: 50px;
}
#navigation ul li a.home:hover {
   background: url(home.jpg) no-repeat 0 -25px;
}

Last edited by karinne; Apr 12th, 2007 at 14:16.
Reply With Quote