Reply
Alternative to position absolute
Old 03-03-2008, 12:36 PM Alternative to position absolute
Junior Talker

Posts: 2
I was wondering if there is an alternative to using position absolute. I have a logo using this and it does not show in ie6. Ie7 and firefox are fine. I have tried using position fixed and position relative but it will not display correctly. It leaves a very large gap between the logo and the horizontal nav bar.
tommy_boy is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 03-03-2008, 01:03 PM Re: Alternative to position absolute
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Did you put the logo into a containing div? I've done that countless times and never had a problem with IE*.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-03-2008, 01:17 PM Re: Alternative to position absolute
Junior Talker

Posts: 2
I am a complete newbie with css. Here is the logo code:
<div id="header">
<p class="logo">Text Here</p>

and here is the css:
#header .logo {
margin:0;
padding:0;
position:absolute;
top:0;
left:25px;
width:245px;
height:64px;
text-indent:-9999px;
background:url(../images/logo.jpg) no-repeat;
overflow:hidden;

}
tommy_boy is offline
Reply With Quote
View Public Profile
 
Old 03-03-2008, 01:22 PM Re: Alternative to position absolute
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
You can take the text-indent part out. That does you no good. In fact, you can even take the p tag out of the equation and have something like this:
Code:
<div id="header">
Logo image code here
</div>
And for your CSS:
Code:
#header {
     position:  absolute;
     top:  0;
     left:  25px;
     width:  245px;
     height:  64px;
     overflow:  hidden;
I'd suggest that you should code your logo in as the hyperlink to your home page e.g.
Code:
<a href="your home page">(your logo}</a>
A lot of users are conditioned to think that the logo links to the home page.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-03-2008, 01:36 PM Re: Alternative to position absolute
angele803's Avatar
Perfectly Imperfect

Posts: 1,565
Name: Stephanie
Location: Oklahoma
Im not sure that you really need to use positioning at all. You might just be able to use some padding. Do you have a page online so we can see the layout?
angele803 is offline
Reply With Quote
View Public Profile
 
Old 03-03-2008, 02:12 PM Re: Alternative to position absolute
LadynRed's Avatar
Super Moderator

Posts: 6,406
Location: Tennessee
I agree with Stephanie, positioning isn't necessary. If you're going to have anything else in the header besides the logo, you should consider floating it left. If that's all that will in there, then the float shouldn't even be needed, just margin and/or padding to push it over.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Alternative to position absolute
 

Thread Tools

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

vB 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.14562 seconds with 13 queries