|
11/23 |
2003/10/9 [Computer/SW/Languages/Java, Computer/SW/Languages/Misc] UID:10548 Activity:kinda low |
10/8 my google foo is weak, any css wizes around here? I want to make a box.italic class that makes a little slanted box around whatever like so... ___________ / yermom / ----------- (but with solid lines). Can i do this? how?, o.k. thanks(ia) -phuqm \_ OK, since there are no constructive responses yet, I'll give it a crack- look at the code for the index page for slashdot- specifically the headers for each article. It's a image of a corner on a colored background. You can do something similar by defining a style and prepending a slanted mask to your SPAN and appending another at the end... If you want a border on this slanted monstrosity you are going to have to define a background also which will be covered by the slanted ends, and cannot use transparency. This is because the background will show through, so you have to cover it on the ends. For a similar reason you cannot use the CSS "border" attribute. For more ideas check out http://csszengarden.com -brain \_ I'm fairly competent with CSS, and this is probably beyond anything CSS 2 can reasonably do. http://www.csszengarden.com for some cool alternatives. \_ you can do this relatively easy using any server side language. \_ uh, if you can't get a browser to render a slanted box with solid lines, wtf can the server do about it? \_ I think he's talking about auto-generating an image with "yermom" in it. Don't do that though. \_ why would you need to auto-generate an image with yermom? there are plenty of those images on the web already. \_ I would do it because it is not always going to say yermom, sometimes it is going to say "whatever" (as the original example given). I could create a script which auto-generates an image with $words in it, but then i get into size issues, transparency issues and all kinds of crap. It is far from "easy" and far from optimal. -phuqm \_ One of many CSS-related bugs in M$ IE. |
11/23 |
|
csszengarden.com -> csszengarden.com/ Download the sample html file and css file The Road to Enlightenment Littering a dark and dreary road lay the past relics of browser-specific tags, incompatible DOM s, and broken CSS support. Web enlightenment has been achieved thanks to the tireless efforts of folk like the W3C , WaSP and the major browser creators. The css Zen Garden invites you to relax and meditate on the important lessons of the masters. Learn to use the yet to be time-honored techniques in new and invigorating fashion. There is clearly a need for CSS to be taken seriously by graphic artists. The Zen Garden aims to excite, inspire, and encourage participation. Clicking on any one will load the style sheet into this very page. CSS allows complete and total control over the style of a hypertext document. The only way this can be illustrated in a way that gets people excited is by demonstrating what it can truly be, once the reins are placed in the hands of those able to create beauty from structure. To date, most examples of neat tricks and hacks have been demonstrated by structurists and coders. You are modifying this page, so strong CSS skills are necessary, but the example files are commented well enough that even CSS novices can use them as starting points. Please see the CSS Resource Guide for advanced tutorials and tips on working with CSS . You may modify the style sheet in any way you wish, but not the HTML . This may seem daunting at first if youve never worked this way before, but follow the listed links to learn more, and use the sample files as a guide. Download the sample html file and css file to work on a copy locally. The css Zen Garden is about functional, practical CSS and not the latest bleeding-edge tricks viewable by 2 of the browsing public. Unfortunately, designing this way highlights the flaws in the various implementations of CSS . Different browsers display differently, even completely valid CSS at times, and this becomes maddening when a fix for one leads to breakage in another. View the Resources page for information on some of the fixes available. Full browser compliance is still sometimes a pipe dream, and we do not expect you to come up with pixel-perfect code across every platform. If your design doesnt work in at least IE5/Win and Mozilla run by over 90 of the population, chances are we wont accept it. |
www.csszengarden.com -> www.csszengarden.com/ Download the sample html file and css file The Road to Enlightenment Littering a dark and dreary road lay the past relics of browser-specific tags, incompatible DOM s, and broken CSS support. Web enlightenment has been achieved thanks to the tireless efforts of folk like the W3C , WaSP and the major browser creators. The css Zen Garden invites you to relax and meditate on the important lessons of the masters. Learn to use the yet to be time-honored techniques in new and invigorating fashion. There is clearly a need for CSS to be taken seriously by graphic artists. The Zen Garden aims to excite, inspire, and encourage participation. Clicking on any one will load the style sheet into this very page. CSS allows complete and total control over the style of a hypertext document. The only way this can be illustrated in a way that gets people excited is by demonstrating what it can truly be, once the reins are placed in the hands of those able to create beauty from structure. To date, most examples of neat tricks and hacks have been demonstrated by structurists and coders. You are modifying this page, so strong CSS skills are necessary, but the example files are commented well enough that even CSS novices can use them as starting points. Please see the CSS Resource Guide for advanced tutorials and tips on working with CSS . You may modify the style sheet in any way you wish, but not the HTML . This may seem daunting at first if youve never worked this way before, but follow the listed links to learn more, and use the sample files as a guide. Download the sample html file and css file to work on a copy locally. The css Zen Garden is about functional, practical CSS and not the latest bleeding-edge tricks viewable by 2 of the browsing public. Unfortunately, designing this way highlights the flaws in the various implementations of CSS . Different browsers display differently, even completely valid CSS at times, and this becomes maddening when a fix for one leads to breakage in another. View the Resources page for information on some of the fixes available. Full browser compliance is still sometimes a pipe dream, and we do not expect you to come up with pixel-perfect code across every platform. If your design doesnt work in at least IE5/Win and Mozilla run by over 90 of the population, chances are we wont accept it. |