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



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

Posts: 2
Trades: 0
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
View Public Profile
 
 
Register now for full access!
Old 03-03-2008, 01:03 PM Re: Alternative to position absolute
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Did you put the logo into a containing div? I've done that countless times and never had a problem with IE*.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
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
Trades: 0
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
View Public Profile
 
Old 03-03-2008, 01:22 PM Re: Alternative to position absolute
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
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,772
Name: Stephanie
Location: Oklahoma
Trades: 2
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?
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
View Public Profile
 
Old 03-03-2008, 02:12 PM Re: Alternative to position absolute
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
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 !!

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
View Public Profile
 
Closed Thread     « Reply to Alternative to position absolute
 

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