Tag Info

New answers tagged

2

Just read this article. It explains everything: https://css-tricks.com/rgba-browser-support/ You should have: div { background: rgba(0, 0, 0, 0.5); color: #fff; } There are also same or similar questions here, like this: http://stackoverflow.com/questions/15449280/html-css-text-background-transparent-but-text-not


1

W3C says: The px unit thus shields you from having to know the resolution of the device. Whether the output is 96 dpi, 100 dpi, 220 dpi or 1800 dpi, a length expressed as a whole number of px always looks good and very similar across all devices (...) And altough it says: To get an idea of the appearance of a px, imagine a CRT computer monitor from ...


1

It's true that image resolution is meaningless on the web. What determines how images are sized is the overall pixel dimensions of the images at whatever screen resolution of the display device. But for the purposes of judging pixel distance for web design, if you set your image in Photoshop to 72 dpi, it should give you a one-to-one relationship between ...


3

There isn't necessarily a direct correlation between pixel measurements in Photoshop and how CSS works in the browser. In other words, if you need 32px of space on your page, you may have to go with something like 28px to account for margin or padding on another element. In general, it's best to design things 'loose' so things can have a few pixels give and ...


0

You can use a css to do this or something close. Go to this site and check below the heading "Using Angles".



Top 50 recent answers are included