ars aranea. the web, the way we make it. | |||
64 Hostile CSS deliveryPosted: Apr 23, 2006, under DHTML. Updated: Aug 18, 2006. Add a comment!Post pages: 1 2 The prime concern should be how to start injecting CSS into the page. Of course, you can throw in a chunk of
Yes, a Similarly, you can inject a JavaScript script remotely or embed it in the page. However, I propose that you don’t resort to JS unless it’s really necessary, and try to do this with CSS only first. Once we’ve got our CSS injection (the above bastardization works thanks to the lenient rendering engines in the browsers everywhere), it’s time to start examining the general markup in the page, which we cannot modify, and see about getting some hooks so we can do some styling. As you can see, there is a table at the top and the bottom serving as a header and footer. Then we have some makeshift “headings” improvised with One concern is differentiating among the various tables and tables within, since we have absolutely no class or id to hook onto. Another aesthetic concern is the limitation imposed by the ODP logo image, which has a green non-transparent background and will probably force you to adopt the same green color for the head table too, unless you’re willing to whip out the good old JS and change the image with a transparent one. Here are some hooking tips:
You’ll notice that it comes down to a bunch of tables, I feel the need to warn you that some browsers will choose to render the page in quirks mode while others will choose standard mode. Producing different CSS for Firefox vs Opera may be tricky, so be careful not to end up needing to do that. If cornered, you could be forced to resort to JS or server-side scripting (since the stylesheet is separate it might as well be a script). Finally, here are several profiles that were considered the most innovative at the 2006 Spring Editor Awards: johndouglas, massy, miriamferrari, spectregunner, tlewis, zelight, guidix, geromarsala, dexter2002. Yes, I know. Amateurs. Go show them. Post pages: 1 2
| Important
Categories
Authoring
(1)Books (2)Cross platforms (2)DHTML (12)Graphical design (3)IT today (12)Morals&Politics (10)ODP (1)Random stuff (3)Romania (16)Security (7)SEO (2)Software (9)SQL (1)Standards (7)Technology (4)WordPress (4)[În română] (5)[This website] (2)Time-jump Syndication Need hosting?I've been a happy user of LunarPages since 2005. |
||
Copyright ©2005–2010 Zuavra | |||