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.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Help me with this two column, can't get it to work.
Old 01-30-2008, 09:29 PM Help me with this two column, can't get it to work.
Novice Talker

Posts: 10
Name: Adam Roach
Trades: 0
I have this two column layout and they div's are on different lines, what could I do? I have tried float and it doesn't work, if you can show me how to use float correctly, then that would be very appreciated, thank's for any future help

http://www.buybuildhost.com/dev
amrclutch1 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-31-2008, 02:52 PM Re: Help me with this two column, can't get it to work.
Novice Talker

Posts: 10
Name: Adam Roach
Trades: 0
No one has any way they can help me?
amrclutch1 is offline
Reply With Quote
View Public Profile
 
Old 01-31-2008, 02:58 PM Re: Help me with this two column, can't get it to work.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Floats will work, but working with EIGHT CSS files is going to be a pain.
I'll have to look at it later, I don't have the time this afternoon.
__________________
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 01-31-2008, 04:06 PM Re: Help me with this two column, can't get it to work.
Novice Talker

Posts: 10
Name: Adam Roach
Trades: 0
The reason I have that many CSS files is because I want to keep it as organized as possible. Would you give me a proof of concept? A simple html file with embedded CSS to use floating with my website?
amrclutch1 is offline
Reply With Quote
View Public Profile
 
Old 01-31-2008, 04:21 PM Re: Help me with this two column, can't get it to work.
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
http://www.webmaster-talk.com/css-fo...sites-2-a.html
Layouts section
joder is offline
Reply With Quote
View Public Profile
 
Old 01-31-2008, 04:39 PM Re: Help me with this two column, can't get it to work.
Novice Talker

Posts: 10
Name: Adam Roach
Trades: 0
Code:
#container #subcontainer #body #left
{        
    background-color: blue;
    
    height: 30px;
    max-width: 800px;
    
    margin-right: 200px;
}

#container #subcontainer #body #right
{
    background-color: red;
    
    height: 30px;
    width: 200px;
    
    float: right;
}
That is the code for the body.css file, which controls the left and right, why are they showing on two lines? It is the the right position, I just need it a line up. http://www.buybuildhost.com/dev

Last edited by amrclutch1; 01-31-2008 at 04:52 PM..
amrclutch1 is offline
Reply With Quote
View Public Profile
 
Old 01-31-2008, 08:20 PM Re: Help me with this two column, can't get it to work.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
First of all, you don't need to do all of this just to specify something for #left:

Quote:
#container #subcontainer #body #left
Just specifying #left would be sufficient.

If you're trying to apply those styles to ALL of those divs, then you're doing it incorrectly, it must use commas:

Quote:
#container, #subcontainer, #body, #left
You don't need 8 CSS files, ONE would do quite well.

Proof of concept ?? How about reading...

http://css-discuss.incutio.com/?page=FloatLayouts

You also need to understand the box model.

This works :
Quote:
body{
background-image: url(background.png);
overflow-y: scroll;
margin: 0;
padding: 0;
}

#container
{
background-color: #3D3D3D;
/*height: auto;*/
min-width: 580px;
max-width: 1000px;
margin: 25px auto;
/*padding: 10px;*/
}


#subcontainer
{
background-color: #FFFFFF;
/* height: auto;*/
min-width: 560px;
max-width: 1000px;
/*padding: 5px;*/
}

#header{
background: #3162AC url(header.png) no-repeat;
height: 65px;
width: 100%;
margin: 0 auto 5px auto;
}
#navigation
{

background: #3162AC url(navigation.png) repeat-x;
height: 30px;
/*width: 100%;*/
margin: 5px auto 5px auto;
}


#body
{
/*height: auto;*/
width: 100%;
margin: 5px auto 5px auto;
}


#left
{
float: left;
background-color: blue;
height: 30px;
width: 800px;
/*margin-right: 200px;*/

}

#right
{
background-color: red;
height: 30px;
width: 200px;
float: left;
}


#footer
{
background-color: #3162AC;
height: 40px;
width: 100%;
clear: both;
}
__________________
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 01-31-2008, 10:02 PM Re: Help me with this two column, can't get it to work.
Novice Talker

Posts: 10
Name: Adam Roach
Trades: 0
If you did not see it, I want the left side to have a min- and max-width, whenever I float it and set the max-width it doesn't go to that width, it just stays at zero unless specified by "width:". If i specify width, it is not dynamic, and it pushes the right side down below it when i make it smaller. Move the horizontal size to show it.
amrclutch1 is offline
Reply With Quote
View Public Profile
 
Old 02-01-2008, 08:57 AM Re: Help me with this two column, can't get it to work.
Novice Talker

Posts: 10
Name: Adam Roach
Trades: 0
I got it by applying a margin: -30px; to the right div.
amrclutch1 is offline
Reply With Quote
View Public Profile
 
Old 02-01-2008, 09:43 AM Re: Help me with this two column, can't get it to work.
Novice Talker

Posts: 10
Name: Adam Roach
Trades: 0
It is perfect in IE and FF!

http://www.buybuildhost.com/dev/
amrclutch1 is offline
Reply With Quote
View Public Profile
 
Old 02-01-2008, 04:21 PM Re: Help me with this two column, can't get it to work.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Your problem with min/max width is going to be that IE6 does NOT recognize it, your layout will break.
__________________
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 02-01-2008, 04:48 PM Re: Help me with this two column, can't get it to work.
Novice Talker

Posts: 10
Name: Adam Roach
Trades: 0
IE is horrible, should I just use PHP to detect the browser, then based on that, select the fluid or fixed width CSS file? Would that make "sense" as a web designer, or should I try to make it work without that.

PS: I like your signature :P

Last edited by amrclutch1; 02-01-2008 at 04:52 PM..
amrclutch1 is offline
Reply With Quote
View Public Profile
 
Old 02-02-2008, 01:30 PM Re: Help me with this two column, can't get it to work.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You don't need PHP for that, just use conditional comments to target IE6 and a separate CSS file that contains ONLY the rules needed to make IE behave.
__________________
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 Help me with this two column, can't get it to work.
 

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