This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60741
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to draw borders around DIV(division) tag
 
Similar Threads
background image on JPanel
Copy n' Paste in JEditorPane wraps text in new css..?
Caption with awt
drawing box and connecting them
painting a custom JComponent