Forum Moderators: not2easy
The other question is regarding shadows in CSS, i want to put a drop shadow to my main container and so far the best i could do was just repeating an image along the container but isnt there a best way to do it. I know there is a shadow support somwhere but i tried it and its not working, not sure if its something like the opacity or alpha property of an element that have to be redifined with a different property for every browser, it would be really useful to find a good style for shadows without using images.
thanks in advance :)
Firefox users expect it to be there, be careful with removing it.
Outlines take up no space and hence are useful for adding to elements without causing the page to redraw.
[w3.org...]
The solution, put this at the top of the css:
a {outline:none;}
Drop shadow is only really possible when used as an image. One trick I did for fun one time is made two div containers the same size then offset the position (using absolute) top and left by a few pixels. If the colors you use are of just slightly a different shade, it creates a drop shadow effect. I still have this little site up and in use.
i want to avoid those gray dots firefox puts around every single focused element on my page
But this is an accessibility feature and very useful for keyboard users. I would certainly think twice about removing it completely - certainly for links! It can be styled. Changing default browser behaviour should always be exercised with caution.
<edit>
i didnt mean to eliminate the outline from the whole site...
#container_name a {outline:none;}
If your tabbed panels are in a specific div, that is how you would do it.
As far as the background drop shadow and font resizing, I fight really, really hard, to make sure everything will fit when the font size is up +1 from the user. You're most likely safe if you design for +1 all the time. Basically, when I have the layout, I hit CTR + to see if it fits, if it works, then almost all users will see it that way (although it doesn't look as nice usually).
There are many methods you could employ to make the drop shadow thing work. Another one is to to have slice the tops and bottoms of your image and cap the top and bottom of a div with those slices. Then use the remainder of the image as the background of the div in the middle and let the image repeat, which would allow content overflow of height. This is tricky, but it is possible with a little craftiness. In fact, I know of a few sites that do this.
#nav a:focus {
outline: none;
background: red;
} Well, that or something more fitting to the design. The point is to style the :focus pseudoclass with some differences to the normal state to indicate when the keyboard user has tabbed to that link.
[edited by: Robin_reala at 12:18 pm (utc) on April 15, 2008]
What's interesting, is I noticed that firefox 3 seems to use the text color attribute for the color of outlines now, instead of it's previous black color (either black, or whatever the OS default is, I'm not sure which)
I dislike having it replaced it as well, since I'm not used to it, and not sure what the replacement effect is representing. Over at some CSS/webdesign webpage, the person replaced the outline effect with "text-decoration:blink". It was really annoying, and confusing at first too.
"Who the hell is so picky that they care about outlines around image links?"
lol, well, I have this co-worker at my side and she was complaining beacuse of the outline, she was like "oh my god, this website is so weird look at this dots everywhere i click, DID YOU MAKE THIS?"....I know how stupid sounds, but thats the main point, she doesnt know anything about websites, she is just a normal user. By this I mean first you need to know who is your website designed for, if its for normal users just interested in watching some good images I dont think they will check the image size or stuff like that ;) If an average user wants to know the image size, well, there are tones of way to know that, remember we are talking about an average user :) I know it would have been easier with the outline but anyways my website was not made for him.
Now if we are talking about a website offering wallpapers for desktop or handsets, i think this will be really important because the users will always check the size of the images for their specific resolution.
Outlines are good, but you have css rules available to modify them or remove them, I think a good designer will know where to do it without affecting the overall functionality of his website.
thanks for the replies :):)