Need major design and coding help!
#1
Posted 20 August 2007 - 02:05 PM
First off, how can I center a div inside of another?
#2 _*Creative Insanity_*
Posted 20 August 2007 - 02:15 PM
#wrapper {
margin: auto;
width: whateverpx;
}
#content{
width: whatever;
otrhersettings: whatever;
}
The wrapper is the controlling div and can be named what ever you want. The content div is the one inside and you can have what ever settings you want in that.
#3
Posted 20 August 2007 - 02:26 PM
http://70.252.1.93:3...yout/header.php
As you can see, I only have the 2 border divs up right now. I need the second one to be centered inside the first. Am I going about this whole thing the right way? I could really use some guidance and help!
Thanks!
#4
Posted 20 August 2007 - 03:15 PM
Your way requires to much code for a border, because you have to align each div perfectly, you have to make each one float over each other, then you have to position them,
if youre going to use ur way id suggest using absolute positioning and then making the z-index for each of the borders a number for each one you want on top of the other:
background-image:border if its an image if not dont include this; border:color; position:absolute; left:whatever; top:whatever; z-index:1;
Border 2
background-image:border2 if its an image if not dont include this; border:color; position:absolute; left:whatever; top:whatever; z-index:2;
Border 3
background-image:border3 if its an image if not dont include this; border:color; position:absolute; left:whatever; top:whatever; z-index:3;
Edited by Lastcrime, 20 August 2007 - 03:19 PM.
#5
Posted 20 August 2007 - 05:27 PM
First, I deleted the second div, and then I modified the style.css page to this:
.container1 {
background-image: url("/layout/border.gif");
background-repeat: repeat;
background-color: #797979;
background-position: top left;
width: 1000px;
min-height: 900px;
position: relative;
text-align: center;
vertical-align: center;
align: center;
margin: auto;
}
#6
Posted 20 August 2007 - 10:31 PM
http://70.252.1.93:3...yout/header.php
Here is the css code:
body {
font-family: Tahoma, Verdana, Arial, sans-serif;
background-color: #BDBDBD;
font-size: 12px;
}
.container1 {
background-image: url("/layout/border.gif");
background-repeat: repeat;
background-color: #797979;
background-position: top left;
width: 985px;
min-height: 900px;
position: relative;
text-align: center;
vertical-align: center;
align: center;
margin: auto;
}
.logo {
background-image: url("/layout/logo.gif");
background-repeat: no-repeat;
background-color: #FFFFFF;
width: 192px;
height: 90px;
position: absolute;
top: 0px;
left: 3px;
text-align: left;
}
.header {
background-image: url("/layout/blacktop.gif");
background-repeat: no-repeat;
background-color: #FFFFFF;
width: 786px;
height: 90px;
position: absolute;
top: 0px;
left: 196px;
text-align: left;
}
.content {
background-color: #FFFFFF;
width: 981px;
min-height: 711px;
position: relative;
top: 90px;
left: 3px;
text-align: left;
vertical-align: left;
align: left;
margin: auto;
}
#7
Posted 20 August 2007 - 11:51 PM
Since its not wide enough just make the width 984px or play around till you get it dead on.
also you dont have to add this but its a good thing to have, in the container div add, overflow:hidden; this way if you make things to big they won't mess up your container and wont go over it.
Edited by Lastcrime, 20 August 2007 - 11:53 PM.
#8
Posted 21 August 2007 - 12:06 AM
#9
Posted 21 August 2007 - 12:11 AM
#10
Posted 21 August 2007 - 12:18 AM
#11
Posted 21 August 2007 - 12:31 AM
#12
Posted 21 August 2007 - 08:53 AM
#13
Posted 21 August 2007 - 12:35 PM
http://www.webcredible.co.uk/user-friendly...detection.shtml
I know about the hacks i just dont know where to put them to fix it thats my only problem maybe you can understand more from reading this.
#14
Posted 22 August 2007 - 10:35 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
