• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! 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:
I'm not sure what you want... but there's no HTML Element called...

HTML:
<border> </border>
!!!

Reg.

That border wraps around text. I wanted to style different borders with different widths and heights. Anyway thanks for your respond, I've found the solution:

#border1{
...
}

#border2{
...
}

<div id="borderN">abcde</div>
 
Status
Not open for further replies.
Top