By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,867 Members | 1,981 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,867 IT Pros & Developers. It's quick & easy.

CSS Syntax

P: 3
Hello everyone, I wanted to ask if anyone could please tell me
what is the syntax for doing an unordered list, no bullets, horizontal display
and what is the syntax for getting content w/in a DIV to align top right

ANY help would be greatly appreciated
Mar 6 '07 #1
Share this Question
Share on Google+
3 Replies


P: 24
How about:

Expand|Select|Wrap|Line Numbers
  1. <style>
  2. #nav ul {
  3.   margin : 0;
  4.   padding : 0;
  5. }
  6.  
  7. #nav ul li {
  8.   margin : 0;
  9.   padding : 2px 6px 2px;
  10.   float : left;
  11.   border-left : solid 1px #ccc;
  12.   border-top : solid 1px #ccc;
  13.   text-align : center;
  14.   list-style-type : none;
  15. }
  16.  
  17.   #nav ul li.last {
  18.     border-right : solid 1px #ccc;
  19.   }
  20.  
  21.   #nav ul li a {
  22.     text-decoration : none;
  23.   }
  24.  
  25.   #nav ul li a:hover, #nav ul li a:active {
  26.     border-bottom : dotted 1px #000;
  27.   }
  28. </style>
  29.  
  30. <div id="nav">
  31.   <ul>
  32.     <li>
  33.       <a href="">page one</a>
  34.     </li>
  35.     <li>
  36.       <a href="">page two</a>
  37.     </li>
  38.     <li class="last">
  39.       <a href="">page three</a>
  40.     </li>
  41.   </ul>   
  42. </div>
  43.  
Mar 6 '07 #2

10K+
P: 13,264
Changed thread title.
Mar 6 '07 #3

gauravgmbhr
100+
P: 107
Changed thread title.

u can read this from Css
Mar 6 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.