[Template] content bgcolor same dgn body bgcolor.. nape??

Locked
kodin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 114
Joined: Fri Aug 25, 2006 3:33 am

[Template] content bgcolor same dgn body bgcolor.. nape??

Post by kodin » Tue Sep 05, 2006 8:47 am

sy ade masalah skit nape tiap kali sy tukar tamplete, mase nak tulis content tuh die nye color dlm kotak nak tulis tu same dgn body bgcolor tamplete homepage sy.. dh jenuh dh otak mencari coding, ubah sane sini... xtau nape...

tgok gmbar nih.http://izzaldin.byethost31.com/images/mp3/sose.JPG

harap ade yg membantu. tq!
Last edited by syahzul on Mon Sep 18, 2006 10:21 pm, edited 1 time in total.
Shah Alam Portal -  http://www.shah-alam.info

orkid
Joomla! Explorer
Joomla! Explorer
Posts: 347
Joined: Mon May 29, 2006 2:34 am

Re: [Template] content bgcolor same dgn body bgcolor.. nape??

Post by orkid » Tue Sep 05, 2006 10:04 am

ko edit kat css file.

tgk kat BODY -> background-color(ko tukar kod color tu. settle

User avatar
Fuqaha
Joomla! Ace
Joomla! Ace
Posts: 1211
Joined: Fri Jan 13, 2006 3:58 pm
Location: Kuala Lumpur, Malaysia
Contact:

Re: [Template] content bgcolor same dgn body bgcolor.. nape??

Post by Fuqaha » Tue Sep 05, 2006 1:59 pm

orkid wrote: ko edit kat css file.

tgk kat BODY -> background-color(ko tukar kod color tu. settle
But the body background will turn to the color you defined too !!

Heres a quote (perfect remedy)
Espenhh wrote: Okay... Will explain slowly...


Site --> Template Manager --> Site Templates

Chose your template, and click "edit CSS"... You it says that this file is writable, then you are fine... If not, you either have to CHMOD it, or download it, perform the edit locally, and upload it again... If you do it the last way, the file you should edit is templates/rhuk_solarflare_ii/css/template_css.css (in the case you use the template rhuk_solarflare_ii)

Change backgroundcolor back to white:

Find:
body {
margin: 15px;
height: 100%;
padding: 0px;
font-family: Arial, Helvetica, Sans Serif;
line-height: 120%;
font-size: 11px;
color: #333333;
background: #FFFFFF;
}
here I don't know what it stands in the bola area in your CSS, but edit it so it says #FFFFFF (white)... By doing that, the background in JCE will become white, and the background of your site too.. But that we are going to fix now :D

Add a new CSS-class with the backgroundcolor of the site

Add somewhere in the CSS (outside any other tag, though :P )
.sitebackground {
background: #440000;
}
Obvoiusly, change #440000 to your prefered background-color :P


Then you save the file (and upload it if you didn't did the changes in the administration)...


Then it's time to edit the index.php-file of the tempalte... Go back to the template-secton of in the administration (Site --> Template Manager --> Site Templates), mark your template, and click "Edit HTML"... If it says that the file isn't writable, then edit the permissions or download it by FTP and do the changes locally, and then upload it... The filename is: templates/rhuk_solarflare_ii/index.php (again, change rhuk_solarflare_ii to your templatename)

Tell the BODY-tag of your site to use the new CSS-class:

Find in file:
Change to:
By doing so, the background of your site will get it's old color back :D


Hopes this made it clearer... Good luck  :)

kodin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 114
Joined: Fri Aug 25, 2006 3:33 am

Re: [Template] content bgcolor same dgn body bgcolor.. nape??

Post by kodin » Fri Sep 08, 2006 3:39 am

still ade prob jugak. nih css utk body templete sy gune...
/* Body */
BODY {
margin: 0px 0px 0px 0px;
background-color : #FFFFFF;   

klau sy nk masukkan class="sitebackground" dlm tag body tu, yg margin tuh ke pindahkan masuk kat css class sitebackground tuh ker?
Shah Alam Portal -  http://www.shah-alam.info

User avatar
Fuqaha
Joomla! Ace
Joomla! Ace
Posts: 1211
Joined: Fri Jan 13, 2006 3:58 pm
Location: Kuala Lumpur, Malaysia
Contact:

Re: [Template] content bgcolor same dgn body bgcolor.. nape??

Post by Fuqaha » Sat Sep 09, 2006 12:23 pm

A ah.. sepatutnye dimasukkan dak..

But i cannot confirm it.. Its better to try and see whats goin on.  :laugh:

kodin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 114
Joined: Fri Aug 25, 2006 3:33 am

Re: [Template] content bgcolor same dgn body bgcolor.. nape??

Post by kodin » Sat Sep 09, 2006 12:46 pm

wahaha.. i made it!! thank you so muchh.... i just insert the class in tag body, not distrub the margin.. thanks!
Shah Alam Portal -  http://www.shah-alam.info

User avatar
Fuqaha
Joomla! Ace
Joomla! Ace
Posts: 1211
Joined: Fri Jan 13, 2006 3:58 pm
Location: Kuala Lumpur, Malaysia
Contact:

Re: [Template] content bgcolor same dgn body bgcolor.. nape??

Post by Fuqaha » Fri Sep 15, 2006 5:40 pm

lordmenace wrote: You do realize that there is an option in JCE to not inherit your templates CSS classes? You will be left with the standard black text and white background


Locked

Return to “Solved”