Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-18-2010, 03:44 AM   PM User | #1
knightrider01
New Coder

 
Join Date: Jun 2010
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
knightrider01 is an unknown quantity at this point
tricky trouble with css on spry top navigation menu

I am having some trouble with this site. I'm trying to have the top navigation bar extend all the way across the page (the medium brown color) rather than only going the length of the top nav items, and I want it to show up with About Us first, and Media last aligned to the right (in different browsers it shows different orders and alignment). Also, I would like there to be no extra white space below the top nav banner before the picture.

Can someone help me? What do I need to do differently in the css/html?
knightrider01 is offline   Reply With Quote
Old 12-18-2010, 04:16 AM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello knightrider01,
Try making these changes to your CSS -
Code:
#MenuBar1 {
	background: #6f574a;
width: 780px;

}
.topnav {
	background: #847a6a;
height: 38px;
}
.content {
	padding: 0;
	width: 780px;
}
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 12-18-2010, 04:33 AM   PM User | #3
knightrider01
New Coder

 
Join Date: Jun 2010
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
knightrider01 is an unknown quantity at this point
That worked awesome for making the color extend across the topnav banner. Thank you, thank you!

But I still have two more questions shown above:
-Some browsers have the topnav right aligned with "About Us" first and "Media" last (which is what I want), and others reverse them and left align them. How do I make this consistent across various browsers?
-Second, I would like there to be no extra white space below the top nav banner before the picture. How do I fix this?
knightrider01 is offline   Reply With Quote
Old 12-18-2010, 08:58 AM   PM User | #4
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Quote:
-Some browsers have the topnav right aligned with "About Us" first and "Media" last (which is what I want), and others reverse them and left align them. How do I make this consistent across various browsers?
You have both in there. Most browsers see the float: right; and there is some weirdo hack f/loat: left; in there that others see.
The li's are going to be ordered different if you float them left or right.
What does it look like if you just lose the browser hacks?


Quote:
-Second, I would like there to be no extra white space below the top nav banner before the picture. How do I fix this?
Umm, I think if you lose that top padding in .content ... like I said in my first post.
Code:
#MenuBar1 {
	background: #6f574a;
width: 780px;

}
.topnav {
	background: #847a6a;
height: 38px;
}
.content {
	padding: 0;
	width: 780px;
}
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
knightrider01 (12-18-2010)
Old 12-18-2010, 04:20 PM   PM User | #5
knightrider01
New Coder

 
Join Date: Jun 2010
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
knightrider01 is an unknown quantity at this point
I soooo appreciate your help! Everything fixed from this thread. Much, much appreciated!
knightrider01 is offline   Reply With Quote
Reply

Bookmarks

Tags
css, length, order, spry, top navigation

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:50 PM.


Advertisement
Log in to turn off these ads.