divs and css
- Started
- Last post
- 15 Responses
- legspin
Hi all,
I need my divs to stay put whenever the browser is resized in a table that is centered. At the mo the table moves to the center and my divs stay put. Any suggestions or links????
Cheers.
- frankosonik0
http://www.csscreator.com/versio…
Make your layout here. The output is usually right on target, and it behaves well in most browsers.
- sparker0
easy...don't use tables.
- ********0
Tables and Divs are like Michael Jackson and little boys....
best kept well apart.
- legspin0
I probably have to go back to the beginning because I don't understand how sites like these are built:
- heavyt0
body{text-align:center;}
#container{margin-auto; width:760px;}all other divs are inside of the container DIV
#div1{position:absolute; top:0; left:0;}
- legspin0
that don't work.
- Blofeldt0
Yeah, make a container like someone said.
MX_OND do you ever use TD's inside your divs? hAVE YOU GOT ALL THAT list item stuff mastered?
- ********0
Yeah baby, ah dinnae use any fucken tables no fucken more, ah'm a radical DIV bastart!
There never any fucken need for TDs an even less for STDs ken?
Ah am the über hooooor!
- legspin0
How do you place one div above another using css then?
body{text-align:center;}
#container{margin-auto; width:760px; z-index:1;}
#div1{position:absolute; top:100; left:500; z-index:2;}that doesn't work but what will?
And how do I place a div dead center/middle of the screen at all times? That has it center top but not middle as well.
- Blofeldt0
http://www.alistapart.com/articl…
That will explain it better then i will
- ********0
for your middle quandary go here...
http://www.bluerobot.com/web/css…
for the one over another you could use absolute positioning for example, but many roads lead tae Rome, ken?
- legspin0
I was wondering if you could do the same thing with the 'container' div as I could with the intial table I used ie.
so whaever I put in that table will stay centered and middle?
- ********0
Ye mean aboot this one?
http://www.bluerobot.com/web/css…
Onything in the BODY tag is centered. Onything in #Content is left aligned, ken?
ye use floats an' spans an' shite like that tae dee ither wee bits.
- legspin0
Erm I'm not sure anymore I'm confused and I've got a bad back and I'm pissed off I can't do my job properly...I'm building a touch screen kiosk for a demo with a swipe card so they need my designs in html and not flash as I initially did them. Just wondering how best to build the fucker! Cheers anyway mate.
- Blofeldt0
if you're not sure with your CS i'd suggest using tables because you'll probably know how to do it. CSS can be a right fucker, and needs to be learnt really.
If you're a Flash developer then you're not not doing your job properly, you're doing something new, so tell the man to get fucked. You hear me? FUCK 'EM!