1 reply [Last post]
beyerj
beyerj's picture
Offline
newbie
Last seen: 2 years 46 weeks ago
Timezone: GMT-5
Joined: 2011-08-14
Posts: 4
Points: 8

Hi guys,

I have a div called wrapper

#wrapper{
	margin:0 auto;
	padding-left:2.5em;
	padding-right:2.5em;
	background-color:#ffffff;
	-webkit-border-radius:0px;
	-moz-border-radius:0px;
	border-radius:0px;
	-webkit-box-shadow:0 2px 10px rgba(0,0,0,0.65);
	-moz-box-shadow:0 2px 10px rgba(0,0,0,0.65);
	box-shadow:0 2px 10px rgba(0,0,0,0.65);
	width:980px;
	}
It gives me padding left and right. Inside of the div I have a table with all of the pages' information. I want to have two rows of background color fill the first two rows of the table (the table is in the div). Right now it does it but it gives me padding of 2.5em left and right. What do I need to do so that the first two rows only can fill the whole div?

Thanks,

Jonathan

balajidesign
balajidesign's picture
Offline
Enthusiast
Last seen: 1 year 2 weeks ago
Timezone: GMT+5.5
Joined: 2012-01-31
Posts: 116
Points: 124

use position:relative in

use position:relative in outer div like wrapper. and inner div position:absoulate. it will working fine.