Shoutbox

<div> placement [solved] - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: <div> placement [solved] (/showthread.php?tid=59976)

<div> placement [solved] by stoshrocket on 05-31-2006 at 03:46 PM

ok, another quick problem. I have a webpage consisting of 4 main divs... a header, div1, div2, and the content. What i want it to look like is this...

[Image: 12ad1.th.gif]

but when i use the code...

code:
<div id="div1">
(content)
</div>

<div id="div2">
(content)
</div>

along with some css to define the colours and sizes the page ends up looking like this....

[Image: 22ev.th.gif]

anyone got any ideas as to how to solve this problem? thankies

EDIT: solved the problem, i simply created a new div to hold both of these divs, so i ended up having a container to contain divs 1 + 2... :D
RE: <div> placement by ShawnZ on 05-31-2006 at 03:51 PM

well it would help if you actually told us the css you're using it do it in the first place..


RE: <div> placement by stoshrocket on 05-31-2006 at 03:59 PM

code:
.div1 {
margin:5px 5px 5px 5px;
padding: 5px 5px 5px 5px;
width:140px;
float:left;
background: #2F2117;
border: 1px solid #231705; }


that's it...
RE: <div> placement by ShawnZ on 05-31-2006 at 04:04 PM

well i don't see how you expected positioning to work if you didn't put any code for it..


RE: <div> placement by stoshrocket on 05-31-2006 at 04:14 PM

well, i dont know how to position it, that was the whole point of the thread, you could've seen in my first post that i didnt enter any code for positioning seen as though i said 'and some css for sizes and colours'... can anyone tell me the code you need to position them then please?

EDIT: solved the problem, see top post