PDA

Click to See Complete Forum and Search --> : drawing a rectangle by HTML


lirlir
Aug 29th, 2000, 04:45 AM
Hi there

i was wondering , is it possible to draw a rect. by html code i would like to fill it with different color too.

tnx lirlir

Ianpbaker
Aug 29th, 2000, 05:29 AM
Hi lirlir

To draw a rectangle, use a div to do it

<div style="BACKGROUND-COLOR: #ff0000; BORDER-BOTTOM: black thin solid; BORDER-LEFT: black thin solid; BORDER-RIGHT: black thin solid; BORDER-TOP: black thin solid; HEIGHT: 115px; LEFT: 101px; POSITION: absolute; TOP: 65px; WIDTH: 200px"></div>


If you need any help with it reply back

Ian

lirlir
Aug 29th, 2000, 06:15 AM
tnx mon ami (my friend) !!!

moperke
Aug 29th, 2000, 04:43 PM
The text is behind the rectancle, how can I put it before the rect?

Thanx

lirlir
Aug 30th, 2000, 01:18 AM
hi moperke,
u should put your text between the div tags like this:

<div id="div1" style="visibility:hidden ; BACKGROUND-COLOR: #c0c0c0; HEIGHT: 290px; LEFT: 56px; POSITION: absolute; TOP: 56px; WIDTH: 487px">text in here</div>

make sure that the text color is different than the BACKGROUND-COLOR.

hope that helps
lirlir

moperke
Aug 30th, 2000, 02:05 AM
Not tryed but thanks anyway!

Moperke