Quick Guide To Ugly Sites With CSS

By Wingnut

of

Pornn Palace

I can almost hear the screams from here! "Wingnut, what the hell did you do to the DFN page? That looks like crap!" I think I might have just heard the thump from Jojasa hitting the floor after seeing *this* bit of my handy work :).

It looks like crap? No kidding?! Good it should be easier to get my point across then. There has been a decent amount of discussion this week on the board about the use of css in our work. In the end I think it was Voltar who said it best. "Fancy CSS doesn't make you any money, your time would be better spent tweaking your sales text". A wise and very true statement, which is why I named this article the way I did.

Unless you are creating a paysite your job is to get the surfer off to a sponsor as fast as possible, long before they ever see any content is the optimal goal.

I know you have all heard the "ugly sites sell" montage and it is a proven fact. If your site looks as good as the sponsor site you are done .. no sales for you. Mainstream sites is a whole other matter where your site *must* be great looking, but we not talking about that now are we?

So as an example of how you can use CSS to help you create an easily changeable page, that is butt ugly, and will help to drive the surfer even quicker to that nice eye pleasing sponsor site.

Why is an easily changed page matter? Well for one with the quick change of the CSS (or removal entirely) you have a new look and feel to your page (a new template look). So you could use the same template layout and create an ugly SE specific entrance and then change it for those picky places that want works of art for site designs.

CSS is a huge beast that can and will drive you out of your freakin mind if you let it get to you. There are endless things you can do with it and it will chew up your valuable time if your not carefull. With that in mind .. the KISS approach is the best. Keep it simple stupid. That last part fits me well :)

I think that a handfull of css skills can add to your ability to create butt ugly sites that sell. They can also be applied to those works of art you all work on but never admit too. The DFN has always used some css in it's pages the ads, quotes navigation areas to name a few but very limited.

I modified this weeks pages and removed all "font" tags, and used total CSS to create the page. I'm sure some of the folks with older browsers have already closed this page.

Let's start with the real basic stuff. A view source of this page will show things in action, but also listed here for example.

<style type="text/css"> <!-- a:link {text-decoration:underline; font-weight:bold; color:#ff0000;} a:visited {text-decoration:overline; font-weight:bold; color:#ff0000;} a:active {font-weight:bold;} a:hover {text-decoration:underline overline; font-weight:bold; font-size:21; color:#ff00ff;} --> </style>

In the above example we can see that style tags are used to identify the CSS elements used in the page. They must start with a style tag and end with a closed style tag and be placed in the "head" of your page. The a:xxx tags represent the various anchor tags that are familiar to us all. The link tag would usually go into the body tag with a color value. This replaces that tag as well as the others.

No this is where the fun starts the css statement must start with a { and also end with a }. The guts in between tell the browser what do. The format is always the same, first is the item you want to change "font-weight", followed by a colon ":", then the value you want to give it "bold", and finally ending with a semi colon ";". In the above example the text-decoration tag is used three different ways. The all are self explanatory in what they do and all demonstrated with this DFN page

"Time is a storm in which we are lost."
William Carlos Willams

Next comes one of my favorite things to use with CSS, the ability to bold all of your links with a boat load of "B" tags running around the page. Font-weight:bold; is a great tool to instantly add bolding to all your links (with no extra work!).

Finally there are two other very useful items used in the above example. The "font-size" and "color" options, again both can be defined (in this case for links) and all the links on the page with react accordingly.

body {scrollbar-3dlight-color:; scrollbar-arrow-color:magenta; scrollbar-base-color:blue; scrollbar-darkshadow-color:; scrollbar-face-color:; scrollbar-highlight-color:aqua; scrollbar-shadow-color:chartreuse; background:#00ff7f; color:#000000;}

In the above example I borderline have some useless information there but thought it would help. This bit does three things, it changes the scrollbar to that nastyness you see now, sets the background color of the page and defines the text color. As you see there are several empty tags for the scroll bar, these tags in my opinion are not needed but you can experiment with then and get as ugly as you want. I put this piece in to show that you can use any tag and define how it looks on the page. If you view source you will also see the H2 tag used on the title defined.

Last but not least I'll talk about today is the ability to define your own "class" of CSS and used with many tags such as the "P" tag or the "DIV" tag. In order to do this you must define it as detailed below by starting it with a period "." and then a word (class name). You then use it by adding the class name to the tag <p class="content">. This is how the background colors of the article have been defined, as well as the ads and quotes.

.content {background:#00ffff; font-size:19;} .little {background:#f5deb3; font-size:15;}

Well I think that should be enough to make you dangerous enough to make to ugly sites that will help you sell better. Good luck and don't spend to much time on it.

Wingnut

Previous PageNext Page

© 2001-2002 EA Ventures. All rights reserved.