|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
It's not working right because you've got a stray brace.
The first step in debugging should always be making sure that your code is valid. http://validator.w3.org/ http://jigsaw.w3.org/css-validator/
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions IE7: the generation 7 browser new in a world of generation 8 browsers. Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. |
|
#17
|
|||
|
|||
|
Quote:
And by brace I take it you mean a </XXX>? I've run it through the validator, and only the /alt remain from the menu could this be it? |
|
#18
|
||||
|
||||
|
Sorry, I should have been more specific. I meant a "}" (right curly brace) in your stylesheet. Stray braces in stylesheets can cause some of the weirdest problems, hence why it's so important to validate early and often, especially when something seems wrong.
|
|
#19
|
|||
|
|||
|
Quote:
thanks. I'll check this. |
|
#20
|
|||
|
|||
|
Quote:
Excellent. Thanks - that worked. It's going to be a steep learning curve! ![]() |
|
#21
|
|||
|
|||
|
one more thing...what would be the appropriate way to add this?
![]() |
|
#22
|
||||
|
||||
|
Change
Code:
<div id="contentpart"> <div class="contentpad"> <div class="titletext">The Usual </div> <div class="sep"></div> to Code:
<div id="contentpart"> <ul id="secondaryNav"> <li><a href="#">Steveston Pizza</a></li> <li class="last"><a href="#">Steveston Express</a></li> </ul> <div class="contentpad"> <h1>The Usual</h1> Then remove the ".contentpad" rule and add these rules: Code:
#secondaryNav {
list-style-type: none;
margin: 0;
padding: 0 2em;
}
#secondaryNav li {
float: left;
}
#secondaryNav li.last {
float: right;
}
.contentpad {
padding: 45px 70px;
}
h1 {
font-size: 30px;
line-height: 1.6;
padding: 0;
margin: .5em 0;
border-bottom: 1px solid #bcbdc0;
}
I'll let you style the links yourself. |
|
#23
|
|||
|
|||
|
Great thanks. That helps alot.
|
|
#24
|
||||
|
||||
|
|
|
#25
|
|||
|
|||
|
Now lets say I wanted to scrap everything I learned about CSS and wanted to learn this new way...what's a good reference / tutorial?
|
|
#26
|
||||
|
||||
|
New? It's not particularly new. Some people have been using most of the techniques I use for over 5 years now.
As to tutorials, it's hard to answer that, since beginners' tutorials may bore you and it's difficult for me to tell which ones might be too advanced. SitePoint and Search-This.com have some great articles: http://www.sitepoint.com/article/ht...beginners-guide http://www.sitepoint.com/article/ht...-perfect-markup http://www.sitepoint.com/subcat/css http://www.search-this.com/category/css/ Make Your Site BulletProof With Floats is also worth reading. |
|
#27
|
|||
|
|||
|
Thanks.
FYI "New" as in "new" to me ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Div class not behaving in Safari - work around? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|