Forum Moderators: not2easy
It has a background image for the inner text area and a dark inner border surrounding that and a lighter outer border faking a drop shadow.
Must i wrap the field in an extra div to achieve the outer border, or is there a cleaner way to do this?
Many thanks for any replies.
And Hi..! (first post)
Jim
(Kiwi in Germany)
Live example and code: [css3.info...]
and welcome to WebmasterWorld ;)
Always worry when people start modifying inputs given the accessibility issues, but this method has less negatives for code semantics and accessibility than other options. Also, do check the background and font colours for readability if the image doesn't display.
No extra mark-up and works cross-browser, although you may have to adjust the dimensions (and perhaps size the input) to get a consistent visual result. Sizing the background-image means the design will "break" if users zoom the page, but the damage can be minimised by using relative measurements for all the other dimensions.
However for this case, I need a more modular technique for all the various widths of fields we'll be having. Therefore I would need a horizontally repeating background inside the field.
A wrapping div works for now.. but yeah.. not the cleanest mark-up in the world.
Thanks anyhow and for the welcome.