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
Three column div in IE problem
Old 06-15-2009, 04:22 AM Three column div in IE problem
Skilled Talker

Posts: 90
Trades: 0
Hi all,

I am fairly inexperienced with CSS and so I've run into a problem with a three-column DIV layout I'm using in IE. It works fine in Safari and FF, but not IE.

You can see it in action here:
http://www.fasports.com/az/phx/leagues.php

The boxes/buttons should be in rows of three, but IE knocks it apart.

The code for one of the rows is:
Code:
                

<div style="border: 2px dotted #003366; padding: 10px">

<div style="float: left">
                    
<div class="button">
                        
LEFT
                        
</div>   
                    
<div style="padding: 0px 330px 0px 330px">

<div class="button">
                        
MIDDLE
                        
</div>                    
                    
</div>

                 
                    
                    </div>                    
                    
                    
                    
                </div>
Any help is appreciated.. thanks!

Last edited by msaz87; 06-15-2009 at 04:50 AM..
msaz87 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-15-2009, 05:06 AM Re: Three column div in IE problem
Super Talker

Posts: 108
Name: Yelnats
Trades: 0
Rearranging your code would be helpful, try using

button {
border: 2px dotted #003366;
float: left;
padding: 10px auto;
}

something like that
__________________

Please login or register to view this content. Registration is FREE
for fun and money.
Please login or register to view this content. Registration is FREE
seo-neon is offline
Reply With Quote
View Public Profile Visit seo-neon's homepage!
 
Old 06-15-2009, 06:07 AM Re: Three column div in IE problem
Skilled Talker

Posts: 90
Trades: 0
So I changed my code to:

Code:
<div style="float: left; padding: 10px auto">
                    
     <div class="button">                
      LEFT
     </div>                    
                    
</div>                    
                    
<div style="padding: 0px 330px 0px 330px">

      <div class="button">
      MIDDLE
      </div>                    
                    
</div>
But I get the same result...

The "button" divs aren't the problem, I don't think -- they're just the content within the columns I'm trying to set up... or could that be what's making IE error?

The class is setup as:

Code:
.button {
    border:0;
}

.button a {
    border:3px double #000;
    display:block;
    outline-color:#-moz-use-text-color;
    outline-style:none;
    outline-width:medium;
    width:200px;
    line-height:20px;
    text-align:center;
    font-family:Arial,Helvetica,sans-serif;
    font-size:14px;
    font-weight:400;
    text-decoration:none;
    color:#fff;
    background-color:#036;
    font-style:normal;
    margin:0;
    padding:7px;
}

.button a:hover {
    font-weight:700;
    background-color:gray;
}

.button a:active {
    outline-color:#-moz-use-text-color;
    outline-style:none;
    outline-width:medium;
}
Thanks for your help!
msaz87 is offline
Reply With Quote
View Public Profile
 
Old 06-15-2009, 10:52 AM Re: Three column div in IE problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
First of all, if you're going to float an element (other than an image), you must give it a width, otherwise you can get results you didn't bargain for. Just get in the habit of defining widths for floats.

Define the 3 columns with widths appropriate hold the content, float them all left or right, and add margins to space them as you want them.

One other thing, don't use spans on text for a page heading - use a proper Hx tag for a HEADING - search engine spiders like REAL headings
__________________
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 06-16-2009, 06:00 AM Re: Three column div in IE problem
Skilled Talker

Posts: 90
Trades: 0
Got it figured out... thanks so much for everyone's help!
msaz87 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Three column div in IE problem
 

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