Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS Menu Problem (in Firefox)
Old 03-29-2007, 12:22 AM CSS Menu Problem (in Firefox)
robthebuilder's Avatar
Experienced Talker

Posts: 35
Name: Robert
Trades: 0
Hey

I'm working on a website found at www.valleylightbaptistchurch.net, and have run into a brickwall regarding the menu. It appears find in IE but is muble-jumbled in Firefox. Here is the CSS:

Quote:
/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/
body {
margin: 17px 0;
padding: 0;
background: #006600 url(images/img5.gif) repeat-y center top;
font-family: Arial, Helvetica, sans-serif;
font-size: .8em;
color: #000000;
}
h1, h2,{
margin: 10px;
padding: 0;
letter-spacing: -2px;
font-variant: small-caps;
font-family: Georgia, "Times New Roman", Times, serif;
color: #C73633;
}
h2 {
padding: 14px 0 0 35px;
word-spacing: 5px;
font-size: 1.95em;
}
h3 {
text-align: center;
padding: 0 0 10px 0;
word-spacing: 3px;
font-size: 1em;
font-family: Arial, "Times New Roman", Times, serif;
font-style: italic;
color: #000000;
}
h4 {
padding: 14px 0 0 0;
word-spacing: 5px;
line-height: 1cm;
font-size: 1em;
font-family: Arial, "Times New Roman", Times, serif;
color: #000000;
}
h5 {
text-align: center;
padding: 14px 0 0 0;
word-spacing: 5px;
line-height: 1cm;
font-size: 1em;
font-family: Arial, "Times New Roman", Times, serif;
color: #000000;
}
h6 {
padding: 14px 0 0 0;
word-spacing: 5px;
font-size: .85em;
font-family: Georgia, "Times New Roman", Times, serif;
color: #000000;
}
h7 {
padding: 14px 0 0 0;
word-spacing: 5px;
line-height: 1cm;
font-size: 1em;
font-family: Arial, "Times New Roman", Times, serif;
color: #000000;
}
a {
color: #006600;
}
a:hover {
text-decoration: none;
color: #C73633;
}
.image {
float: left;
margin: 0 20px 15px 0;
}
.list, .list2c {
margin-left: 0;
padding-left: 0;
list-style: none;
line-height: 2em;
}
.list2c li {
float: left;
width: 50%;
}
/* Header */
#header {
width: 700px;
height: 80px;
margin: 0 auto;
}
#header h1 {
float: left;
padding: 11px 0 0 10px;
letter-spacing: -3px;
font-size: 3.5em;
}
#header h6 {
float: right;
padding: 20px 17px 0 0;
word-spacing: normal;
letter-spacing: 0px;
}
#header a {
text-decoration: none;
}
/* Menu */
#menu {
width: 700px;
height: 30px;
margin: 0 auto;
}
#menu ul {
margin: 0;
padding: 0;
list-style: none;
}
#menu li {
display: inline;
}
#menu a {
display: block;
float: left;
width: 140px;
height: 25px;
padding: 7px 0 0 0;
background: #87A12C url(images/img6.gif) repeat-x left bottom;
text-align: center;
letter-spacing: -1px;
text-decoration: none;
color: #FFFFFF;
font-variant: small-caps;
font-weight: bold;
}
#menu a:hover {
background: #A71615 url(images/img3.gif) repeat-x left top;
}
/* Content */
#content {
width: 660px;
margin: 0 auto;
padding: 20px;
}
#colOne {
float: left;
width: 640px;
}
#colTwo {
float: right;
width: 363px;
}
/* Footer */
#footer {
clear: both;
width: 700px;
margin: 20px auto;
padding: 10px 0 0 0 0;
background: #87A12C url(images/img6.gif) repeat-x left bottom;
font: "Times New Roman", Times, serif;
}
#footer p, #footer a {
margin: 0;
text-align: center;
font-size: 10px;
font-weight: bold;
color: #FFFFFF;
}
I know I cheated using header tags to format the page, but I am new to this. Any help would be appreciated. Thanks again.
__________________
Industrial products for sale @
Please login or register to view this content. Registration is FREE
robthebuilder is offline
Reply With Quote
View Public Profile Visit robthebuilder's homepage!
 
 
Register now for full access!
Old 03-29-2007, 10:47 AM Re: CSS Menu Problem (in Firefox)
Kirtan's Avatar
Who Am I?

Posts: 377
Name: Venkat Raj
Location: Salem, South India
Trades: 3
When floating elements you should clear it before placing other markups. use this after closing header div.
Code:
<br style="clear:both" />
(Better place CSS in CSS file )
Alternatively you can add "clear:both" CSS rule in #menu style.
And it will be fine.
__________________
All the Buddhas of all the ages have been telling you a very simple fact: Be -- don't try to become.

Last edited by Kirtan; 03-29-2007 at 11:36 AM.. Reason: add content
Kirtan is offline
Reply With Quote
View Public Profile Visit Kirtan's homepage!
 
Old 03-29-2007, 11:50 AM Re: CSS Menu Problem (in Firefox)
robthebuilder's Avatar
Experienced Talker

Posts: 35
Name: Robert
Trades: 0
Quote:
<br style="clear:both" />
Yep, that was the trick, thank you very much!
__________________
Industrial products for sale @
Please login or register to view this content. Registration is FREE
robthebuilder is offline
Reply With Quote
View Public Profile Visit robthebuilder's homepage!
 
Old 03-29-2007, 03:22 PM Re: CSS Menu Problem (in Firefox)
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Somewhat more refined method:

.brclear {
clear:both;
height:0;
margin:0;
font-size: 1px;
line-height: 0;
}


Then the html <br class="brclear" />
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-29-2007, 05:54 PM Re: CSS Menu Problem (in Firefox)
robthebuilder's Avatar
Experienced Talker

Posts: 35
Name: Robert
Trades: 0
Quote:
.brclear {
clear:both;
height:0;
margin:0;
font-size: 1px;
line-height: 0;
}
Would this be the validator correct way to introduce appropriate spacing on the page? Or just a preference? Thanks. Also, why in css is /> added to the end of a tag?
__________________
Industrial products for sale @
Please login or register to view this content. Registration is FREE

Last edited by robthebuilder; 03-29-2007 at 05:56 PM..
robthebuilder is offline
Reply With Quote
View Public Profile Visit robthebuilder's homepage!
 
Old 03-29-2007, 07:09 PM Re: CSS Menu Problem (in Firefox)
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
That is just a method for clearing floats. The line-height: 0 and the font-size: 1px means that it does not add any vertical space either.

If you want to space out text using CSS, use margins and padding on your <p> tags.
Quote:
why in css is /> added to the end of a tag?
It's not CSS, that is for XHTML as ALL TAGS must be closed in XHTML.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS Menu Problem (in Firefox)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18202 seconds with 12 queries