Solved

CSS - border-width: hairline; Is this achievable?

Posted on 2011-02-11
5
2,926 Views
Last Modified: 2012-05-11
I'm looking for a border width that's thinner than border-width: thin;  How do I do it?

0
Comment
Question by:jdana
5 Comments
 
LVL 18

Assisted Solution

by:Eternal_Student
Eternal_Student earned 100 total points
ID: 34872749
NO, thin is as small as it gets.
0
 

Author Comment

by:jdana
ID: 34872898
Can I get away with fractional points or pixels?  (ex. 0.5px or 0.5pt?)
0
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 100 total points
ID: 34872910
border-width:1px; is the smallest possible one
0
 
LVL 14

Accepted Solution

by:
Designbyonyx earned 300 total points
ID: 34873007
Unfortunately a you can't get smaller than a single pixel.  A good technique to sort of imply a thinner line is to use a lighter color.  If you want a really thin black border, then use a 1px grey border.

border: 1px solid #999;
0
 

Author Closing Comment

by:jdana
ID: 34873689
Designbyonyx,

Great suggestion!  It now looks sharp.

Thanks.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now