Webcoders
Would you like to react to this message? Create an account in a few clicks or log in to continue.

WC


You are not connected. Please login or register

 posted: 1

» Sun Aug 05, 2012 9:24 am

Admin

Admin
Hello, this tutorial will learn you how to create a cool blue/white affliate banner just using CSS and HTML.

This will be your end result:
Blue/White Affliate Banner Afflia10

Ofcourse you can change the title and the description.

The affliate banner body
Let's make a cool affliate body, it's easy to do this.
Put this in your css:

CSS Code
Code:
.banner-body {
background: url(http://i48.tinypic.com/t8n2aw.png) white;
background-repeat: no-repeat;
background-position: top left;
border-radius: 3px 3px 3px 3px;
border: 1px solid grey;
min-height: 100px;
width: 500px;
}

This gets you the body of the banner.
To place the banner go to your html page and add this:
Spoiler:

Creating the lines background
To make the lines background appear you must create a sort of 'wrap'/holder.
Add this to your css:

CSS Code
Code:
.holder {
background: url(http://i49.tinypic.com/opqqyr.png);
min-height: 100px;
width: 500px;
}

This will create the stripes on the background.
You html tags should now be:
Spoiler:

This should be your result:



Adding the title
You probably want that nice title do you?
It's easy, put this in your css:

CSS Code
Code:
.banner-title {
padding-top: 3px;
padding-left: 4px;
margin-left: 12px;
border-bottom: 1px dashed grey;
color: rgb(84, 73, 250);
font-weight: bold;
font-size: 23px;
text-shadow: 2px 2px 5px #C2C2C2;
filter: dropshadow(color=#C2C2C2, offx=2, offy=2);
}


Your tags should now look like this:
Spoiler:

Adding the description
Now put this in your css:

CSS Code
Code:
.banner-description {
padding-top: 3px;
padding-left: 4px;
margin-left: 12px;
color: #696969;
font-size: 14px;
text-shadow: 2px 2px 5px #C2C2C2;
filter: dropshadow(color=#C2C2C2, offx=2, offy=2);
}


Your tags must now look like this:
Spoiler:

You're done!

This should be your end result:
Blue/White Affliate Banner Afflia10



Last edited by Admin on Mon Aug 06, 2012 2:58 am; edited 1 time in total

https://webcoders.actieforum.com

 posted: 2

» Sun Aug 05, 2012 10:00 am

Admin

Admin
Smaller version:
Blue/White Affliate Banner Afflia11

https://webcoders.actieforum.com

 posted: 3

» Sun Aug 05, 2012 11:01 am


Member
i cant see the pictures

 posted: 4

» Mon Aug 06, 2012 2:59 am

Admin

Admin
I fixed that now ;-) You should now be able to see the images too!

https://webcoders.actieforum.com

 posted: 5

»


Permissions in this forum:
You cannot reply to topics in this forum