1
bushwaiter
CSS change problem
  • 2005/1/5 20:03

  • bushwaiter

  • Just popping in

  • Posts: 21

  • Since: 2004/10/30


Hi Guys,

I changed the CSS sheet of a theme, but when I use the main menu to for example "News" the whole effect is gone. It seems that all the changes I made are only active at the home-page.

I tried to set a background picture instead of a color, which, like I said, works only at the homepage.

Can someone please help me out?

Bushwaiter

2
Mithrandir
Re: CSS change problem

Got a link to the site?

3
bushwaiter
Re: CSS change problem
  • 2005/1/5 20:16

  • bushwaiter

  • Just popping in

  • Posts: 21

  • Since: 2004/10/30


Hi,

The site I'm building is: http://vra.moligry.com

News works fine now, but the rest doesn't.

gr.

Bushwaiter

4
robekras
Re: CSS change problem
  • 2005/1/5 20:20

  • robekras

  • Documentation Writer

  • Posts: 187

  • Since: 2002/12/10


http://vra.moligry.com

Ehem...,
which username and password?

5
bushwaiter
Re: CSS change problem
  • 2005/1/5 20:29

  • bushwaiter

  • Just popping in

  • Posts: 21

  • Since: 2004/10/30


Sorry,

Now you can enter with 2x "xoops" .

Bushwaiter

6
robekras
Re: CSS change problem
  • 2005/1/5 20:51

  • robekras

  • Documentation Writer

  • Posts: 187

  • Since: 2002/12/10


Hi Bushwaiter,

there is an error in your stylesheet:

body {color: black; background: "http://vra.moligry.com/themes/VRA/mback.gif" ; margin: 0; padding: 0;}

when you want to set the background image you have to write backgrounde-image: "http://vra.moligry.com/themes/VRA/mback.gif"

Please see:http://www.w3schools.com/css/css_background.asp

Within your startpage the background image is shown because you have a hardcoded background attribute within your second body tag!!!!! (yes a second body tag within one page, that's strange)
Ok, that's the second error.

I think it's because you made a block with frontpage (which is making a whole html page)

Robert

7
studioC
Re: CSS change problem
  • 2005/1/5 21:47

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


setting a background with css short expression will work if you do it this way:

body {
color: black;
background: url(mback.gif) no-repeat;
}
don't forget url()

(note: for your bgimage is in same folder as your style.css you can use the relative path to image instead using full (absolute) url)


but, as robekras has posted, have a look at your document structure!

perhaps try a validator to validate your html document , see
http://validator.w3.org/

have fun
michael

8
bushwaiter
Re: CSS change problem
  • 2005/1/5 22:04

  • bushwaiter

  • Just popping in

  • Posts: 21

  • Since: 2004/10/30


@ Michael & Robert,

Thanks a million!!!!

It works. Glad to notice that this help-forum works as well!!

I'm learning fast, but, maybe I need to call upon you guys again , if you don't mind.


gr.

Ferry

Login

Who's Online

234 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 234


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits