473,320 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CSS Syntax

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
3 1361
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
r035198x
13,262 8TB
Changed thread title.
Mar 6 '07 #3
gauravgmbhr
107 100+
Changed thread title.

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

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

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
22
by: Tuang | last post by:
I'm checking out Python as a candidate for replacing Perl as my "Swiss Army knife" tool. The longer I can remember the syntax for performing a task, the more likely I am to use it on the spot if...
14
by: Sandy Norton | last post by:
If we are going to be stuck with @decorators for 2.4, then how about using blocks and indentation to elminate repetition and increase readability: Example 1 --------- class Klass: def...
19
by: Nicolas Fleury | last post by:
Hi everyone, I would to know what do you think of this PEP. Any comment welcomed (even about English mistakes). PEP: XXX Title: Specialization Syntax Version: $Revision: 1.10 $...
3
by: Manuel | last post by:
I'm trying to compile glut 3.7.6 (dowbloaded from official site)using devc++. So I've imported the glut32.dsp into devc++, included manually some headers, and start to compile. It return a very...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.