Click to See Complete Forum and Search --> : Hi -- CSS Boxes --


Pan
07-06-2004, 10:24 AM
Hi Newbie here :)

How do you put one CSS box inside another CSS box,please ?? :o

hope this makes sense -- ??:( :)

pyro
07-06-2004, 10:51 AM
No, that doesn't really make sence. What exactly are you trying to do?

Ben Rogers
07-06-2004, 11:46 AM
Yes, what do you mean? Nested divs? Border-style: double? I'm lost...

Pan
07-06-2004, 01:41 PM
Hi

Description: Table within a table --but in CSS

Answer: It cant be done unless you use the old table method --
:D

Thanks -

:cool:

pyro
07-06-2004, 01:48 PM
Your description is still lacking and I wonder where you came up with that answer?

But, if you don't want our help... Whatever. :rolleyes:

Pan
07-06-2004, 02:09 PM
Pyro

Please Accept my apolagy --- :) of course I need your help -- :) it was an honest question,but not very clear

I meant my last reply as a joke on myself -- the question was an honest one, but I realize now ,it cannot be done within the rules of CSS.

I hope you all on this board will assist --- in other questions I may pose, which may Not make sense, but --- life is difficult until you learn the rules of whatever you are learning.

Thanks

xx

pyro
07-06-2004, 02:12 PM
Originally posted by Pan
I meant my last reply as a joke on myself -- the question was an honest one, but I realize now ,it cannot be done within the rules of CSS.I'm still curious what it is that you think can't be done with CSS. Maybe it can be... ;)

DaveSW
07-06-2004, 02:14 PM
Do you mean nesting?

<div id="first">
I'm in the first div
<div id="second">
I'm in the second div
</div>
I'm in the first div
</div>

Pan
07-06-2004, 02:41 PM
Hi Dave/

I can only describe as html: can this be done with (CSS)the inner box floating to the left ?? Its a design thought -- :)

<html>
<body>

<table border="4" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="80%" bordercolorlight="#FF0000" bordercolordark="#C0C0C0" height="80%">
<tr>
<td width="100%" valign="top">
<p align="center"><b>This is Box 1.<br>
<br>
</b></p>
<table border="4" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="80%" bordercolorlight="#800000" bordercolordark="#EFD6E1" height="80%">
<tr>
<td width="100%" valign="top">
<b> Box 2</b></td>
</tr>
</table>
</td>
</tr>
</table>

</body>

</html>:)

pyro
07-06-2004, 02:48 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Example</title>

<style type="text/css">
html, body {
height: 100%;
}
</style>

</head>

<body>

<div style="width: 80%; height: 80%; border: 1px solid #000;">
<p style="text-align: center;">This is Box 1.</p>
<div style="width: 80%; height: 80%; border: 1px solid #999; float: left;">Box 2</div>
</div>

</body>
</html>

Pan
07-06-2004, 03:28 PM
Hi Pyro

Thatis EXACTLY what I meant -- (http://www.geocities.com/lesparkin2002//pyrothanks.html)

brilliant

Thanks so much ------------- :) :) :)

Hi Omega

Looked at your homepage ---------- the Liked the top menu :)

pyro
07-06-2004, 03:38 PM
You are very welcome. :)

Ben Rogers
07-06-2004, 04:11 PM
Heh, thanks for the compliment, Pan. And yes, Pyro is a frickin' genius. :D Stick around and you'll find out for yourself... ;)

Pan
07-06-2004, 05:35 PM
Hi Omega

yes i have looked at his site --- beautiful !! Top rate.


I think it is an excellent idea to have homepages and cool sites and links on the posts, thanks again, appreciate all your help. xxxx :)