NameSilo

Using CSS for menus

Spaceship Spaceship
Watch

nothing_possible

Impossible is NothingVIP Member
Impact
30
hi guys please tell me how can i use css just like ssi or frames . so i have to change just one file and all the menus of my site automatically change plesae tell me im wating for your answere.how to put a menu into a stylesheet.

http://www.livelyfun.com
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
just create classes for your menu, and then create a div for them in your layout, to change the look and fell of them all you have to do then is edit your CSS
 
0
•••
Typically, you use float:left; and float:left; to make it so the menu appears on one side of the page and the content on the other. As Brian said, simply put them into divs.

Here is some sample code:
Code:
[b][COLOR=Red]HTML:[/COLOR][/b]
 
[COLOR=Blue]<div [COLOR=Green]id="menu"[/COLOR]>[/COLOR]
<!-- the menu -->
[COLOR=Blue]</div>[/COLOR]
 
[COLOR=Blue]<div[COLOR=Green] id="content"[/COLOR]>[/COLOR]
<!-- the content>
[COLOR=Blue]</div[/COLOR]>

[b][COLOR=Red]CSS:[/COLOR][/b]

#menu {
float:left;
}
#content {
float:right;
}

For help with some CSS, I suggest the following sites:
A List Apart: Taming Lists
Listamatic
 
Last edited:
0
•••
thanyou very much that really helped me thnx :)
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back