Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to draw borders around DIV(division) tag

 
kashif iftikhar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did someone know how to draw a border around <div> tag.
for examples to draw borders around tables we can write border=1 in table tag.
i think there is no parameter for border in div tag so any other way to draw a border arount it..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using a CSS style on the div, as in:
<div style="border:1px solid black">Whatever</div>
hth,
bear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic