Jump to content

help: 3 div and 1 div as a border

- - - - -

  • Please log in to reply
1 reply to this topic

#1
wheay

wheay

    Learning Programmer

  • Members
  • PipPipPip
  • 32 posts
Hi

can someone help me. i have 3 div stack together like
[ ]
[ ]
[ ]

the problem is i want to add 1 div on top inside the 3 div acting as a border how do i do that.

thank you!

#2
JillesCode

JillesCode

    Newbie

  • Members
  • Pip
  • 9 posts
you can do that with css.

<div id="a">

<div id="border"></div>


<div id="b">the second div.</div>


</div>


The css would be like:

#a{width:100px;height:50px;position:absolute}

#border{background:#000;width:100px;height:1px;position:relative;top:-1px;}

I hope this is what you mean.

- JillesCode




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users