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!
[Template] content bgcolor same dgn body bgcolor.. nape??
-
- Joomla! Enthusiast
- Posts: 114
- Joined: Fri Aug 25, 2006 3:33 am
[Template] content bgcolor same dgn body bgcolor.. nape??
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
-
- Joomla! Explorer
- Posts: 347
- Joined: Mon May 29, 2006 2:34 am
Re: [Template] content bgcolor same dgn body bgcolor.. nape??
ko edit kat css file.
tgk kat BODY -> background-color(ko tukar kod color tu. settle
tgk kat BODY -> background-color(ko tukar kod color tu. settle
- Fuqaha
- 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??
But the body background will turn to the color you defined too !!orkid wrote: ko edit kat css file.
tgk kat BODY -> background-color(ko tukar kod color tu. settle
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: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 nowbody {
margin: 15px;
height: 100%;
padding: 0px;
font-family: Arial, Helvetica, Sans Serif;
line-height: 120%;
font-size: 11px;
color: #333333;
background: #FFFFFF;
}
Add a new CSS-class with the backgroundcolor of the site
Add somewhere in the CSS (outside any other tag, though :P )Obvoiusly, change #440000 to your prefered background-color :P.sitebackground {
background: #440000;
}
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
Hopes this made it clearer... Good luck
-
- Joomla! Enthusiast
- Posts: 114
- Joined: Fri Aug 25, 2006 3:33 am
Re: [Template] content bgcolor same dgn body bgcolor.. nape??
still ade prob jugak. nih css utk body templete sy gune...
klau sy nk masukkan class="sitebackground" dlm tag body tu, yg margin tuh ke pindahkan masuk kat css class sitebackground tuh ker?
/* 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
- Fuqaha
- 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??
A ah.. sepatutnye dimasukkan dak..
But i cannot confirm it.. Its better to try and see whats goin on.
But i cannot confirm it.. Its better to try and see whats goin on.
-
- Joomla! Enthusiast
- Posts: 114
- Joined: Fri Aug 25, 2006 3:33 am
Re: [Template] content bgcolor same dgn body bgcolor.. nape??
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
- Fuqaha
- 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??
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