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
Banner/Menu Alignment
Old 08-17-2008, 09:27 PM Banner/Menu Alignment
Junior Talker

Posts: 4
Trades: 0
I am having the biggest problem getting my menu bar to line up with my banner image the way I'd like in Mozilla Firefox. The site looks great in IE and I'm afraid that once I get it to work in Firefox it'll look bad in IE! If anyone has time to take a look and let me know what they think I'd really appreciate it.

The site can be seen right now at http://www.piratekingdesign.com/camppndl/index.html

Thanks!

Last edited by krocky07; 08-17-2008 at 09:49 PM..
krocky07 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-17-2008, 11:44 PM Re: Banner/Menu Alignment
Junior Talker

Posts: 4
Trades: 0
Thought maybe if I posted the code I could get some feedback. For some reason when I copy my code its linking to webmaster-talk.com. My images are obviously not there they are on my own domain!

HTML:
.<div id="header">
.<div id="banner_left"><img src="http://www.webmaster-talk.com/images/banner_left.jpg" class="header_left" /></div>
.<div id="banner_right"><img src="http://www.webmaster-talk.com/images/banner_right.jpg" class="header_right" /><div id="menu"> | Home | About Us |</div></div>
.</div>

CSS:

/* Header styles */

#header {
background: #254117;
clear:none;
float:left;
width:100%;
padding-top: 5px;
}

#menu {
background-image: url(images/menu_bkgd_1.jpg);
background-repeat: repeat-x;
height: 41px;
padding-top: 5px;
padding-right: 0px;
padding-bottom: 5px;
padding-left: 0px;
margin: 0px;
overflow: hidden;
clear: right;
}
.header_right {

}
.header_left {
float: left;
width: 210px;
}
#header #menu a {
position: static;
}

Last edited by krocky07; 08-17-2008 at 11:48 PM..
krocky07 is offline
Reply With Quote
View Public Profile
 
Old 08-17-2008, 11:47 PM Re: Banner/Menu Alignment
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
You should never, EVER, design something checking it in IE first, let alone solely. First thing, get rid of the deprecated align="center" attribute on your listhead div and position using CSS. Though this is not causing your problem, make sure you put alt tags in your images, for accessibility's sake. The deprecated tag, I think, is at the heart of your problem, but let's see what happens. If necessary, IE can then be kicked into compliance with conditional comments.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 08-17-2008, 11:55 PM Re: Banner/Menu Alignment
Junior Talker

Posts: 4
Trades: 0
Hi Tim thanks for replying this problem has been killing me all day. I actually was checking the site in Firefox first and then IE second. Most of the day I had the site looking great in Firefox and bad in IE and then suddenly they switched on me! All for this same problem!

I got rid of that align center tag LOL was hoping nobody would see that for now! And I do plan on adding alt text to my images, right now that image is just there for filler and I wasn't sure if the header images would stay this way or if I needed to do something else with them to make this work.
krocky07 is offline
Reply With Quote
View Public Profile
 
Old 08-18-2008, 07:45 AM Re: Banner/Menu Alignment
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
So is it working now?

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 08-18-2008, 08:07 PM Re: Banner/Menu Alignment
Junior Talker

Posts: 4
Trades: 0
Hey Tim,
I got it! I went back and did some conditional comments and made separate style sheets for IE 6 and IE 7. I'm not sure if this is an accepted way of doing things, but it worked! I'm open to any other suggestions!
krocky07 is offline
Reply With Quote
View Public Profile
 
Old 08-18-2008, 08:13 PM Re: Banner/Menu Alignment
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Coding it for FF, then doing separate stylesheets for IE, is actually the standard way of doing things. By doing so you can use those fixes for other pages as well. Good code is organized code. Glad you got it sorted out.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Reply     « Reply to Banner/Menu Alignment
 

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.30785 seconds with 12 queries