Log in

View Full Version : Two DIV Questions



Cory
02-26-2007, 08:49 AM
1.) I know I've seen this DIV style before, however, I forgot the coding for it. How do you make a DIV in this style (http://209.85.48.8/9764/158/upload/p1481772.jpg)? Where the text is input within the border.

2.) Is there anyway to put cellspacing or cellpadding within a DIV? Where the text will not be so close to the border.

Thanks for any help that you can provide.

codeexploiter
02-26-2007, 09:09 AM
2.) Is there anyway to put cellspacing or cellpadding within a DIV? Where the text will not be so close to the border.

padding-left
padding-top
padding-right
padding-bottom

can be used

Cory
02-28-2007, 06:31 AM
Thanks for that information, codeexploiter. :)

Now, does anyone know where I can find a similar HTML snippet, as to the one I linked to?

djr33
02-28-2007, 06:58 AM
I'm not aware of anything that works like that. In fact, I doubt you have seen it.
It could have been other things, like images, or two divs mixed (with various borders turned on/off, but I have no idea about using text AS the border.

chechu
02-28-2007, 09:38 AM
<fieldset style="width:100;height:100;border: 1px dotted #cccccc;">
<legend align=center>ikke</legend>
content
</fieldset>
More here:http://www.htmlcodetutorial.com/forms/_FIELDSET.html

chechu
02-28-2007, 09:44 AM
To suit more your demand:

<fieldset style="width:300;height:300">
<legend align=center>title</legend>
<table width="100&#37;" height="100%" cellspacing="5" cellspacing="10">
<tr><td align=left bgcolor="#eeeeee">
content here
</td><td align=right bgcolor="#000000">
content again
</td></tr></table>
</fieldset>

codeexploiter
02-28-2007, 09:59 AM
To suit more your demand:

<fieldset style="width:300;height:300">
<legend align=center>title</legend>
<table width="100%" height="100%" cellspacing="5" cellspacing="10">
<tr><td align=left bgcolor="#eeeeee">
content here
</td><td align=right bgcolor="#000000">
content again
</td></tr></table>
</fieldset>

This is the one for his first question. If you use the following code in the above source then it will produce exactly what Cory needs.


<legend align=left>title</legend>

chechu
02-28-2007, 10:05 AM
I thought that was pretty clear ...