4 replies [Last post]
Guidovdr
Offline
newbie
Last seen: 16 years 16 weeks ago
Joined: 2004-08-09
Posts: 6
Points: 0

Hi,
I made a horizontal and a vertical menu using CSS.
But the common links in the body of the pages inherit the style of the horizontal menu, as you can see on:
http://www.cawdepapaver.be/deelwerking/voc.htm
there are 2 common links to a pdf file at the bottom of the page.
I don't want them to inherit the style of the menu above, I want them to show as a common link, but I don't know how to manage that. Sad
Anybody can help?
TIA,
Guido
Below is the code from the horizontal menu:
#hmenu a {
display:inline;
width:200px;
margin: 5px 1;
padding:9px;
font: bold 11px/1 Verdana, Arial, Helvetica, sans-serif;
color:#FFFF00;
background: #333366 url(none) no-repeat;
text-decoration: none;
border: none #000066;
}

#hmenu a:hover {
background-position: -157px 0;
color: #FFFFFF;
background-color: #FF33CC;
}

#hmenu a:active {
background-position: -314px 0;
color:white;
background-color: #FF33CC;
}

Stu
Stu's picture
Offline
Enthusiast
Bristol uk
Last seen: 16 years 45 weeks ago
Bristol uk
Joined: 2004-01-20
Posts: 282
Points: 0

I don't want common links to inherit menu style

Instead of closing your hmenu div at the bottom of the page, close it after the links.

<div id="hmenu"> 
      <p><a href="../index.htm">Home</a> <a href="">Kwaliteit</a> <a href="">Personeel</a> 
        <a href="">Organisatie</a> <a href="">Preventie</a></p>
</div>

It's not what you do it's the way that you do it.
So do it with STYLE
http://www.s7u.co.uk

homchz
Offline
Enthusiast
Last seen: 13 years 47 weeks ago
Joined: 2004-07-23
Posts: 77
Points: 0

I don't want common links to inherit menu style

if you do not mind me asking

what does this do?

\width: 730px;
w\idth: 710px;

Guidovdr
Offline
newbie
Last seen: 16 years 16 weeks ago
Joined: 2004-08-09
Posts: 6
Points: 0

solved!

Thanks Stu,
this helped instantly, and ended my search for a solution.
Guido

Guidovdr
Offline
newbie
Last seen: 16 years 16 weeks ago
Joined: 2004-08-09
Posts: 6
Points: 0

I don't want common links to inherit menu style

homchz wrote:
if you do not mind me asking

what does this do?

\width: 730px;
w\idth: 710px;

I would have to look through a pile of papers I downloaded. I think I remember this code is for certain browsers (Opera?) who do make a mistake in showing the right width.
I'm writing so much code and trying to solve so many problems I have the feeling to loose control...
Guido