Web Design / Discuss

Current Discussion

Looking for a web designer for Fashion Blog
Latest: 2 days ago
Web Designers promote yourself! <Your Website Here>
Latest: 7 days ago
Your Company Our Design
Latest: 6 weeks ago
I'm a nightlife/event photographer - easiest way or template to upload mass galleries?
Latest: 2 months ago
Help wanted... ready to pay
Latest: 5 months ago
twitte my web
Latest: 6 months ago
Testing new website
Latest: 6 months ago
Futurico – Free User Interface Components
Latest: 6 months ago
Web Design & Graphic Design
Latest: 9 months ago
Dreamweaver on Windows 7
Latest: 9 months ago
Most effective design?
Latest: 10 months ago
Tutorial / tips sites (XHTML, CSS, STANDARDS) - please contribute!
Latest: 10 months ago
More...

Search this group's discussions

Help with css menu

d.hummelen [deleted] says:

I'm trying to create this menu…
menu
But I'm alway's anding up with this menu…
Afbeelding 1
I'm realy frustrated becous i can't get it to work the way i want. Please some help with or good directions. Here's the css:
#header {
margin: 0px;
height: 70px;
background-color: #FFF;
width: 430px;
float: right;
padding-top: 0px;
padding-right: 5px;
padding-bottom: 0px;
}
#header ul {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
color: #aa113f;
}
#header ul li {
display: inline;
}
#header ul li a {
float: left;
height: 38px;
width: 75px;
color: #aa113f;
border: 1px solid #aa113f;
padding: 15px;
font-size: 1.1em;
font-weight: normal;
text-align: center;
}
#header ul li a:hover {
color: #a19160;
border-color: #a19160;
}
#header ul li h4 {
font-size: 0.8em;
background-color: #aa113f;
color: #FFF;
font-weight: normal;
width: 107px;
margin: 0px;
float: left;
padding-top: 5px;
padding-right: 0px;
padding-bottom: 5px;
padding-left: 0px;
text-align: center;
position: absolute;
display: inline;
overflow: visible;
}
#header ul li p {
font-size: 0.5em;
text-align: center;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
float: right;
display: inline;
width: 105px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
position: absolute;
margin-top: 23px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
padding-top: 9px;
padding-right: 0px;
padding-bottom: 9px;
padding-left: 0px;
clear: none;
}
#header ul li p a {
margin: 0px;
padding: 0px;
height: 0px;
width: 0px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
clear: none;
float: none;
}
Posted at 1:27PM, 28 January 2009 PDT (permalink)

view photostream

dezinerau says:

Can you post the relevant HTML code too? To me it looks like you've missed an ending LI or A tag on the second item, or something similar.
Originally posted 41 months ago. (permalink)
dezinerau edited this topic 41 months ago.

d.hummelen [deleted] says:

here's the html code

logo koken op maatLonneke ten Hoven koken op maat


koken op locatie
thema menu'skloostermenu | dag van de zorg | Afternoon tea's | 16e eews tafelen
work shops
patisserie
Posted 41 months ago. (permalink)

d.hummelen [deleted] says:

•div id="header"•
•ul•
•li••a href="koken_op_locatie.html"•koken op locatie•/a••/li•
•li•thema menu's•p••a href="index.html"•kloostermenu•/a• | •a href="index.html"•dag van de zorg•/a• | •a href="index.html"•Afternoon tea's•/a• | •a href="index.html"•16e eews tafelen•/a••/p••/li•
•li••a href="work_shops.html"•work shops•/a••/li•
•li••a href="patisserie.html"•patisserie•/a••/li•
•/ul•
•/div•
I've replaced the with • so you can read it
Posted 41 months ago. (permalink)

view photostream

StephenMitchell  Pro User  says:

Try using 'span' instead of 'p'. The 'p' (paragraph) attribute has inherent properties that will take precedence over your CSS.

PS. Use more CSS-shorthand to reduce size of stylesheet.

ie

border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;

becomes

border-style:solid;
Originally posted 41 months ago. (permalink)
StephenMitchell edited this topic 41 months ago.

view photostream

dezinerau says:

I think problem is that you have "float" on all of your "a" tags and they're not playing very nicely together. You should subclass the "a"s in the second block and only apply the floats to the first three. The "a"s in the other blocks do not need to be floated.

Also what he ^ said :)
Originally posted 41 months ago. (permalink)
dezinerau edited this topic 41 months ago.

d.hummelen [deleted] says:

Is it maybe easeyer to make the menu in flash. Would it give anny difficulties… caus i finaly made it work and now most of the browsers display it different and way wrong.
Posted 40 months ago. (permalink)

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).

RSS 2.0 feedSubscribe to a feed of stuff on this page...</!!> Feed – Subscribe to Web Design discussion threads