- Joined
- Mar 1, 2013
- Messages
- 555
Greetings everyone
I find it difficult to set more than 1 border's size to a fixed value while inside another border. for example:
__________________
STYLE:
border1 {
width:1000px;
height:1000px;
border-style:solid;
border-width:1px;
border-color:black;
margin:auto;
}
border2 {
width:1000px;
height:1000px;
border-style:solid;
border-width:1px;
border-color:black;
margin:auto;
}
__________________
BODY:
<border1>
1
<border2>
2
</border2>
</border1>
__________________
the second border wraps around "2" instead of being 1000x1000 like the first border. Why does this happen and how can I fix it?
Thanks for helping
I find it difficult to set more than 1 border's size to a fixed value while inside another border. for example:
__________________
STYLE:
border1 {
width:1000px;
height:1000px;
border-style:solid;
border-width:1px;
border-color:black;
margin:auto;
}
border2 {
width:1000px;
height:1000px;
border-style:solid;
border-width:1px;
border-color:black;
margin:auto;
}
__________________
BODY:
<border1>
1
<border2>
2
</border2>
</border1>
__________________
the second border wraps around "2" instead of being 1000x1000 like the first border. Why does this happen and how can I fix it?
Thanks for helping
Last edited: