- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi!
Happy New Year!
would someone let me know please is it to early to use css 3 image border property or there
another way I can do it in CSS 2?
http://www.css3.info/preview/border-image/
Many Thanks and Kind Regards
Charles
You can, however, accomplish this with some JavaScript and good-old absolute positioning.
Any elements you would want to have a border you’d need to add a class, like “.sqaureborder”, to. Use jQuery to find those classes, and append this set of divs;
topleft, topcenter, topright, leftcenter, rightcenter, bottomleft, bottomcenter, bottomright
You would then position these divs absolutely, giving them specific dimensions and background images. So yeah, its possible without CSS3, but a pain. I made a script like this some time ago….
Use it for browsers that do support CSS3. Never hold back on using the latest web technologies othersise people will never see the need to upgrade their browser to something good
For all others either use a JavaScript alternative, or simply use a basic border
Hey Guys
Found Java script to support css 3 IE 6 and 8
http://selectivizr.com/
That website only makes IE support CSS3 selectors.
This script helps to supports CSS3 in IE 6 to 8
border-radius
box-shadow
border-image
multiple background images
linear-gradient background images
There is NO reason you cannot use CSS3 selectors right now. Sure not all browsers will see the same thing but isn’t that what graceful degradation is all about? As long as you are aware how the site will look in each browser (CSS3 friendly and unfriendly) and you prepare the site visually for that…by all means make use of that wonderful CSS3.