Solved

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

Posted on 2011-02-11
5
2,990 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

932 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

11 Experts available now in Live!

Get 1:1 Help Now