NameSilo

Using CSS for menus

SpaceshipSpaceship
SpaceshipSpaceship
NamecheapNamecheap
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
Close
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
Close
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
Close
thanyou very much that really helped me thnx :)
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back