DIV halpppp
- Started
- Last post
- 22 Responses
- CygnusZero40
^ On the div css? Just tried that, doesnt do anything.
- prophetone0
sorry didn't really look at above but try display: inline-block;
- CygnusZero4
I need to have a bunch of divs lined up next to each other horizontally, which then all need to be horizontally centered on a page. I have them next to each other using float:left, but tried putting them centered in a table which isnt working.
#apDiv1 {
position:relative;
width:150px;
height:75px;
z-index:1;
background-color:#b0e0e6;
top:0px;
float:left;
}#apDiv2 {
position:relative;
width:150px;
height:75px;
z-index:1;
background-color:#000;
top:0px;
float:left;
}
</style>
</head><body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<a href="#"><div id="apDiv1">mnbmbnmb</div>
</a>
<div id="apDiv2">mnbmbnmb</div>