![]() |
|
|
How to Fix These Columns? |
|
Novice Talker
Posts: 7
|
Hello.
I can't seem to get my columns right on this page: http://mattelmore.org/links_esl_resources.php Could somebody please explain to me the basic concept of sorting the code so that I actually get two columns. No matter how I switch up the order, they get all jumbled up on me. Also, they look different in Firefox and IE. Thanks in advance. |
|
|
|
| Sponsored Links (We share ad revenue): |
|
|
Re: How to Fix These Columns? |
|
DEAD Good Coder
Posts: 1,095
Name: Stefan
Location: London, UK
|
I don't think that helps tbh.
You obviously need floats for this, I haven't looked at your css but I'm guessing its acting in the way you describe due to no width attribute being set. Code:
.float1 {
float:left;
width: 200px;
}
.float2 {
float:right;
width:200px;
}
__________________
Offering Website Design Worldwide, please visit my website |
|
|
|
|
|
Re: How to Fix These Columns? |
|
Super Moderator
![]() Posts: 5,542
Location: Tennessee
|
Gilligan is correct, if you're going to use floats, you MUST define a width, especially with a columnar layout.
IE6 is going to botch the columns because you are triggering the doubled-float margin bug by applying a margin going in the same direction as the float, ie: float:left and a left margin - IE will DOUBLE that left margin. Read about it here: http://www.positioniseverything.net/...ed-margin.html
__________________
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" |
|
|
|
|
|
Re: How to Fix These Columns? |
|
Novice Talker
Posts: 7
|
WhOOPs.
The change worked for the columns. But now a photo has stretched itself sideways. Check it out: http://mattelmore.org/esl.php What do I need to tweak to make that right? |
|
|
|
|
|
Re: How to Fix These Columns? |
|
DEAD Good Coder
Posts: 1,095
Name: Stefan
Location: London, UK
|
It might be because the class "column" also has a width being set.
But by the looks of it, you can just change this in your links page Code:
<div class="float1 column"> Code:
<div class="float1"> Alternatively you could remove the 'width' attribute from "column"
__________________
Offering Website Design Worldwide, please visit my website |
|
|
|
| Sponsored Links (We share ad revenue): |
| Thread Tools | |
|
|
| Webmaster Resources Marketplace: |
| Software Development Company | Webhosting.UK.com |
| Web Templates | Text Link Brokers | Stock Photos |