• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

HTML borders

Status
Not open for further replies.
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
 
Last edited:
Status
Not open for further replies.
Top