| Ultrashock Forums
• CSS - Easiest way to centre a floated list? |
|||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
|
|
|||||||||||||||||||||||||
![]() |
Ultrashock Member Comments:
|
2008-11-20
#2 |
||
|
|
2008-11-21
#3 |
||
|
Thanks, but this doesn't work. The links just go back to being at the left.
|
|
|
2008-11-22
#4 |
||
|
Here you have ![]() Code:
*{padding:0; margin:0}
body{text-align:center}
#wrap{width:850px; margin:0 auto 0 auto}
#footer {width:100%; border:red 6px solid}
ul#footer-nav{list-style-type:none; border:green 6px solid}
ul#footer-nav li{margin:10px; display:inline; border:gray 6px solid}
Code:
<div id="wrap"> <div id="footer"> <ul id="footer-nav"> <li><a href="#" title="link 1">link 1</a></li> <li><a href="#" title="link 2">link 2</a></li> <li><a href="#" title="link 3">link 3</a></li> <li><a href="#" title="link 4">link 4</a></li> <li><a href="#" title="link 5">link 5</a></li> </ul> </div> </div> |
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|


3 comments
| 1098 views




Linear Mode
ul#footer {list-style-type: none; margin: 0; text-align: center;} ul#footer li {display: inline; padding: 0 5px;}