Right side Menu?

Found something that doesn't work as expected? Encountered PHP errors? Submit your bug reports here!
MacNETv2

Right side Menu?

Postby MacNETv2 » Thu May 23, 2002 12:25 pm

Is there a way to make a right side column for 125x125 Ads? I'd like to offer Ads on the right side of the page and having a way to do this easily would be great...
karma
Posts: 983
Joined: Fri Dec 07, 2001 4:25 pm
Contact:

Postby karma » Fri May 24, 2002 3:24 pm

Sure, this can be done by editing skins and css.

An example (starting from the default skin):

in default.css, change and add:

Code: Select all

/* definitions applying to the contents block */
.contents {
   position: absolute;
   left: 200px;
   width: 400px;   
   padding-left: 20px;
   border-left: 1px dashed #ccc;
}

.ads {
   position: absolute;
   left: 650px;
   width: 150px;
   padding: 3px;
   border: 1px solid black;
}


Then, in the default skin, add the following code (with adds) on every part. It should be added at the bottom of the page, above "</body></html>"

Code: Select all

<div class="ads">
place ads here
</div>


This example will make a right-side column with ads appear on each page.

Note: you could save the code for the ads in a separate file (let's say ads.html) and use <%include(ads.html)%> on each skin page instead.
slashbomb.com
Posts: 30
Joined: Thu Jun 20, 2002 2:15 am
Location: NC
Contact:

Postby slashbomb.com » Sun Jul 07, 2002 1:55 am

I did this :)

www.slashbomb.com for an example.
Mark
SlashBomb: Explosive tech news and other fragments of geekness.
http://www.slashbomb.com

Return to “Bug Reports & Feature Requests”