Log in

View Full Version : How can i change the CSS code of my header to my header template


acast
09-09-2008, 11:25 PM
Hi, i have my banner in my style in the CSS, this is the code:

/* ***** SETS LOGO AREA FOUND IN HEADER AND ALL OF IT'S PROPERTIES ***** */
#logo {
background: url(enlighten/misc/header_logo.gif);
width: 470px;
height: 102px;
float: left;
margin: 0;
padding: 0;
}

/* ***** sets background for header area - No need to change this ***** */
#hdr {
background: #F7632F url(enlighten/misc/header_back.gif) ;
width: 100%;
height: 102px;
margin: 0;
padding: 0;
}


/* ***** SETS HEADER RIGHT SIDE AREA FOUND IN HEADER AND ALL OF IT'S PROPERTIES ***** */
#hdr_rs {
background: url(enlighten/misc/header_rs.gif);
width: 34px;
height: 102px;
float: right;
padding: 0;
}

I need to put it in the header template because in the CSS are things and changes that i cant do, for example using the banners rotators. Anybody knows how can i adapt this code to the header template so my banners looks like they look with the code in the CSS?

DoB Rhapsody
09-09-2008, 11:39 PM
I don't understand what you mean. You want to add a banner rotator to your header, correct?

acast
09-10-2008, 01:34 AM
I don't understand what you mean. You want to add a banner rotator to your header, correct?Hi friend, the code i put is the code that makes my banner appears in my forum, and is located in the CSS. But if you have the code of your banners in your CSS you cant use scripts, so i cant make that my banners can rotate, so i need to adapt the code that is working in my CSS, to work in my header template, so i wont have problems because in the header template you can use scripts.

Opserty
09-10-2008, 07:40 AM
You can add additional CSS in the textarea at the bottom of the page: AdminCP > Styles & Templates > Style Manager > Main CSS

acast
09-10-2008, 05:15 PM
You can add additional CSS in the textarea at the bottom of the page: AdminCP > Styles & Templates > Style Manager > Main CSSSure, but scripts dont work in the CSS.

Opserty
09-10-2008, 07:45 PM
Do you mean Javascript? Well, obviously they aren't going to work they aren't CSS. :p

Javascript can be placed in templates though.

acast
09-10-2008, 09:34 PM
Yes, so i have to makes the necessary changes to adapt my CSS code to my header template instead of CSS.