Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,056 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,587 people online right now. Registration is fast and FREE... Join Now!




Collumes

 
Reply to this topicStart new topic

Collumes, My collums waon't line up right.

zbeos
30 Jul, 2008 - 09:21 AM
Post #1

New D.I.C Head
*

Joined: 26 Jul, 2008
Posts: 18


My Contributions
I have writen many websites. In fact thats what i do for a living. I am redoing my personal site. I am using divs.

I have to collums and i want them to line up next to eachother side by side.
and float won't work because the right collum goes under everything on the pages instead.
Does anyone know whats wrong or have a better technique than floats?
Thanks in advance
User is offlineProfile CardPM
+Quote Post

BenignDesign
RE: Collumes
30 Jul, 2008 - 09:29 AM
Post #2

Bubble wrapped for your safety.
Group Icon

Joined: 28 Sep, 2007
Posts: 950



Thanked: 2 times
Dream Kudos: 150
My Contributions
Post your code like this:

code.gif

And I'll see what I can do to help.
User is offlineProfile CardPM
+Quote Post

zbeos
RE: Collumes
30 Jul, 2008 - 09:50 AM
Post #3

New D.I.C Head
*

Joined: 26 Jul, 2008
Posts: 18


My Contributions
here you go.
if you want I can post my home page to if you need my html.
but what i can't figure out is that all my code valid so nothings "wrong" its just not like i want it.

CODE
h1 {
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size:16px;
    font-weight:bold;
    margin:0;
    padding:0;
    color:#404040;
    }
h2    {
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size:14px;
    font-weight:bold;
    color: black;
    margin:0;
    padding:0;
    }
h3  {
    color:black;
    }
BODY {
    background: url(images/bg.gif) white;
    color: black;
    margin : 0 auto;
    }
a:link{
color:white;
text-decoration: none;
}
a:visited{
color:white;
text-decoration: none;
}
#body{
    background: white;
    border-bottom: 8px solid black;
    border-left: 8px solid black;
    border-right: 8px solid black;
    margin-left: 60px;
    margin-right: 60px;
    padding : 0px;
    }
#header{
    background: #f00;
    margin: 0px;
    padding: 0px;
    }
#rightcol  a:link{
color: #f00;
text-decoration: none;
    }
#rightcol a:visited{
    color:#f00;
    text-decoration: none;
    }
#rightcol{
   background: url(images/rightcol.gif) no-repeat left top white;  
   width:659px;
   padding:10px;
   }
#rightcol2{
    background: white;
   color:black;
   width:669px;
   height:1116px;
   padding:5px;
    }
#leftcolcasing{
    background: #404040;
    width: 188px;
    }
#topleft{
    background: url(images/topleft.jpg)  no-repeat left top #404040;
    color: white;
    height:161px;
    width:188px;
    }
#left {
    background: #404040;
    color: gray;
    font-weight: normal;
    padding-left: 3px;
   }
#shortleft {
    background: #404040;
    color: gray;
    font-weight: normal;
    padding-left: 3px;
    height: 165px;
    width: 185px;
    }
#botleft{
   background: #f00;
   }
#bottom {
    background: url(images/fon_bot.png) white;
    color: black;
    text-align: center;
    font-weight: bold;
    height: 77px;
    padding-top: 18px;
    }
#bottom  a:link{
color: #f00;
text-decoration: none;
    }
#bottom a:visited{
    color:#f00;
    text-decoration: none;
    }
ul {
list-style-type : disc;
list-style-image : url(images/dot.jpg);
}
.extralist {
margin : 2px 0 0 12px;
padding : 0;
list-style : none;
}
.extra li {
margin : 0;
padding : 1px 0;
}

hr {
    border:none;
    border-top:1px solid #CCCCCC;
    height:1px;
    margin-bottom:25px;
    }

#menucontainer{
    background:#A9A9A9;
    display:block;
    padding:35px 0 0 15px;
    }

#menu{
    position:relative;
    display:block;
    height:24px;
    font-size:11px;
    font-weight:bold;
    font-family:Arial,Verdana,Helvitica,sans-serif;
    }

#menu ul{
    margin:0px;
    padding:0;
    list-style-type:none;
    width:auto;
    }

#menu ul li{
    display:block;
    float:left;
    margin:0 1px 0 0;
    }

#menu ul li a{
    display:block;
    float:left;
    color:#fff;
    text-decoration:none;
    padding:5px 20px 0 20px;
    height:19px;
    background:transparent url(images/foxmenu_bg-OFF.gif) no-repeat top left;
    }

#menu ul li a:hover{
    color:#fff;
    background:transparent url(images/foxmenu_bg-OVER.gif) no-repeat top right;
    }

#menu ul li a.current,#menu ul li a.current:hover{
    color:#000;
    background:#fff;
    }
IMG.displayed {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height:287px;
    width: 371px;
    border: 10px solid black;
    }
IMG.left{
    border: none;
    }
IMG.music{
    height: 50px;
    width: 50px;
    border: 3px solid #F00;
    margin: 4px;
    }
IMG.thumb{
    height: 100px;
    width: 100px;
    border: none;
    }

User is offlineProfile CardPM
+Quote Post

BenignDesign
RE: Collumes
30 Jul, 2008 - 05:36 PM
Post #4

Bubble wrapped for your safety.
Group Icon

Joined: 28 Sep, 2007
Posts: 950



Thanked: 2 times
Dream Kudos: 150
My Contributions
Alright. I'm going to make a couple of assumptions here, please correct me if I am wrong.

1. You want a two column layout.
2. Your menu is contained in your left column.

If the above statements are true, part of the display problem is that you have the menu set to float left, but not the column.
User is offlineProfile CardPM
+Quote Post

zbeos
RE: Collumes
30 Jul, 2008 - 06:25 PM
Post #5

New D.I.C Head
*

Joined: 26 Jul, 2008
Posts: 18


My Contributions
no my menu is at the top but it goes inside another set of divs. in that set of divs it is alinged to the left. I have two content collums. everything goes inside on big set of divs. when i align the right content collun the the right in goes below that one big set of divs.
If you were confused ill explain more.

here is my actual css file to go with my html


Attached File(s)
Attached File  index.html ( 7.83k ) Number of downloads: 7
Attached File  style.css ( 3.26k ) Number of downloads: 5
User is offlineProfile CardPM
+Quote Post

BenignDesign
RE: Collumes
1 Aug, 2008 - 10:24 AM
Post #6

Bubble wrapped for your safety.
Group Icon

Joined: 28 Sep, 2007
Posts: 950



Thanked: 2 times
Dream Kudos: 150
My Contributions
well... not totally sure what your background is supposed to look like when it's all said and done, but this bit should get you started:

CODE


#rightcol{
   background: url(images/rightcol.gif) no-repeat left top white;  
   width:659px;
   padding:10px;
   position:absolute;
   margin-left:200px;
    }

#leftcolcasing{
    background: #404040;
    width: 188px;
    position:relative;
    float:left;
    }


User is offlineProfile CardPM
+Quote Post

Will_00
RE: Collumes
1 Aug, 2008 - 10:38 AM
Post #7

D.I.C Head
Group Icon

Joined: 20 Jul, 2008
Posts: 51


My Contributions
You could edit your CSS to be similar to the following:

CSS


#leftcolumn {
position: absolute;
margin: -100px 0px 0px -200px
overflow: auto;
width: 100px;
height: 1000px;
top: 20%;
left: 20%;
text-align: center;
padding: 0px;
}

#rightcolumn {
position: absolute;
margin: -100px 0px 0px -200px
overflow: auto;
width: 100px;
height: 1000px;
top: 20%
left: 50%
padding: 0px;
text-align: center;
}


I have not checked the code for that particularly, so you will likely have to edit the left tag on the #rightcolumn. You could of course edit the left column to make it more centered and the right more centered as they are currently placed to the left, but that is the general method you may want to do it in.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 05:59PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month