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
Layout sidebar links I cant get quite right
Old 10-01-2007, 01:56 AM Layout sidebar links I cant get quite right
Skilled Talker

Posts: 89
Trades: 0
I will say this is the first time I have made a layout's sidebar links this way, but it is not working. As you can see my original intent was to have the sidebar expand so the footer just gets pushed down when more content is added. (Like my content that works great expandible and all) Also the sidebar looks different in Ie than FF. It is really late and I don't understand what I am doing wrong. Please help.

http://www.goldfishgraphicshome.com/Blue/index.php
__________________

Please login or register to view this content. Registration is FREE
Bouzy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-01-2007, 04:16 PM Re: Layout sidebar links I cant get quite right
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Well, you got it 1/2 right - you have the UL, but you don't have any <li>s !
Put each of your links in a <li></li>, then you can style the links and li items with CSS.

IE is dropping the right sidebar because of it's broken box model. The width of the right and left sides is too wide to fit inside the container. Make the left column a bit narrower and it should resolve the problem.
__________________
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 10-01-2007, 06:36 PM Re: Layout sidebar links I cant get quite right
Skilled Talker

Posts: 89
Trades: 0
Thanks I fixed the problems with the footer, but it still looks different in Ie then ff. I think I tried doing what you said, but I might have done it wrong. If you visit the link again it is still messed up in IE.
__________________

Please login or register to view this content. Registration is FREE
Bouzy is offline
Reply With Quote
View Public Profile
 
Old 10-01-2007, 09:48 PM Re: Layout sidebar links I cant get quite right
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Ok, part of the problem is here:
Quote:
#content {

background-color: #ffffff;
width: 538px;
min-height: 300px;

margin-top: 6.5px;
margin-bottom: 0px;
margin-right: 0px;
margin-left: 6.5px;
padding-left: 4px;
float: left;

}
You have a left-floated div with a left margin. One of IE's many bugs is the doubled float margin bug - which means IE is taking that 6px left margin and turning it into 12px.
For this, you need a 'hack', but you need to use conditional comments and a separate CSS file for IE fixes ONLY. The solution is this:

#content: {display: inline;}

Add this to the head of your page:
[quote}
<!--[if lt IE 7]>
<link href="iefixes.css" rel="stylesheet" type="text/css" /> <![endif]-->
<!--[if gt IE 6]>
<link href="ie7fixes.css" rel="stylesheet" type="text/css" /> <![endif]-->
[/quote]

You also need to remove the padding-left: 4px on #content - also because of IE's broken box model. Put the spacing on the <p> inside #content instead.

You've got lots of problems on your list because the width varies on hover, so you need to find a total width, including the hover styling, and make that the total width of the sidebar (and you have no styling on #sidebar).

All of IE's nasty bugs are outlined here, with solutions:
http://www.positioniseverything.net/explorer.html
__________________
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 10-01-2007, 10:01 PM Re: Layout sidebar links I cant get quite right
Skilled Talker

Posts: 89
Trades: 0
Thanks I will look into that. I didn't realize I was such a bad coder lol.
__________________

Please login or register to view this content. Registration is FREE
Bouzy is offline
Reply With Quote
View Public Profile
 
Old 10-02-2007, 11:27 AM Re: Layout sidebar links I cant get quite right
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You're not.. IE 6 is just a BAD browser !
I would, however, lose all that class="linklist" stuff on every <li> item. You can style the whole thing w/o all that in your CSS.
__________________
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 Layout sidebar links I cant get quite right
 

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