> You could go about it in this way:
> For the home page, give the body tag the class "home" ( class="home">), for the About Us page, () and
> so on.
> The menu items should also have classes, eg ( class="home">HomeAbout Us...).
>
> Your css should look like this:
>
> .home .home { display:none;}
>
David Hucklesby wrote:
If I understand you correctly, you want a consistent menu structure on
every page, but want to style the current page item differently?
If so, perhaps you can replace the A element with something else, just
for that one item?
Probably the simplest way is to use ... with
You could go about it in this way:
For the home page, give the body tag the class "home" (), for the About Us page, () and
so on.
The menu items should also have classes, eg (HomeAbout Us...).
Your css should look like this:
.home .home { display:none;}
.about_us .about_us, .contact_us .contact_u
On 4/25/11 1:00 PM, Neil Hunt wrote:
I am trying to do the following: (1) Create a menu where the
"home" button does not appear on the "home page." I added css to
make the display property=none for the "home" button on the home page
using the id's for the page(body), menu(ul) and menu item(li).
@lists.css-discuss.org] On Behalf Of Neil Hunt
Sent: Monday, April 25, 2011 1:00 PM
To: css-d@lists.css-discuss.org
Subject: [css-d] Styling and
I am trying to do the following:
(1) Create a menu where the "home" button does not appear on the "home
page." I added css to make the
I am trying to do the following:
(1) Create a menu where the "home" button does not appear on the "home
page." I added css to make the display property=none for the "home" button
on the home page using the id's for the page(body), menu(ul) and menu
item(li). See code below...
(2) Change color of