Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove the border where two division intersect

Tags:

html

css

I am attaching two division's border and remove the border where two division intersect but its not remove. I have tried this code.

<div style="border:solid 1px #CCC; 
margin: 15px 0px 0px 350px; 
border-bottom:none; 
padding:12px 12px 8px 12px; 
border-radius:5px 5px 0px 0px; 
width:300px; 
text-align:center;">

<strong style="font-size:18px; color:#000">ABC</strong> 
</div>
<div style="width:968px; 
float:left; 
margin:0px 15px 15px 15px; 
border: solid 1px;
border-color:#CCC; 
border-radius:10px;">
Hello
</div>

Can anybody help me to solve this error.

jsFiddle: http://jsfiddle.net/9XFDp/1/

like image 451
Khushang Bhavnagarwala. Avatar asked Aug 16 '13 11:08

Khushang Bhavnagarwala.


1 Answers

Just nudge the top div by 1px from top and use some background-color or even border-bottom is fine

Demo

Added the below properties to the header div

position: relative;
top: 1px; 
background: #fff; 
z-index: 1;

Note: Don't use inline CSS, create classes instead.

Demo 2 (Without using background-color, used border-bottom: 1px solid #fff; instead)

like image 177
Mr. Alien Avatar answered Sep 30 '22 07:09

Mr. Alien