aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to draw borders around DIV(division) tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to draw borders around DIV(division) tag" Watch "How to draw borders around DIV(division) tag" New topic
Author

How to draw borders around DIV(division) tag

kashif iftikhar
Ranch Hand

Joined: Aug 21, 2001
Posts: 43
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

Joined: Jan 10, 2002
Posts: 60071
    
  65

Try using a CSS style on the div, as in:
<div style="border:1px solid black">Whatever</div>
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to draw borders around DIV(division) tag
 
Similar Threads
drawing box and connecting them
Caption with awt
painting a custom JComponent
Copy n' Paste in JEditorPane wraps text in new css..?
background image on JPanel