full screen background

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
joostsoo
Forum Members
Forum Members
Posts: 57
Joined: Sun Sep 14, 2008 12:47 pm

full screen background

Post by joostsoo »

Hello,
I'm new in the CSS world and I'm struggeling with a problem.
I have a side build in First page and use a embedde stylesheet for a background on the whole page.
Now I want to do this in the example pages of CMS.
I copied a sjablon and worked on that.
But what ever I try I always get an error like this.

string(243) "Smarty error: [in preview:cmspreviewvD8Ytq line 50]: syntax error: unrecognized tag: background-image:url(/upload/images/achtergrond.jpg); background-repeat: no-repeat; background-position: top left; (Smarty_Compiler.class.php, line 446)" string(124) "Smarty error: [in preview:cmspreviewvD8Ytq line 50]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590).

I also tried, without succes, to create a style sheet for this.
So I hope someone can help me on the right track.
Thanks in advance
Regards Joost
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: full screen background

Post by Gregor »

Could you paste the code?

It looks like you try to use a tag that is not known by cmsms, i.e. a type or so??

Gregor
joostsoo
Forum Members
Forum Members
Posts: 57
Joined: Sun Sep 14, 2008 12:47 pm

Re: full screen background

Post by joostsoo »

Hello Gregor,
Sorry for the late responce, I was off line a few days.
Her is a cut out of the code I try.
When I have this code in 1st page editor it works correct, in CMS it doesn´t.
I hope you can shed some light
here is the code


body{
  background-image:url(/upload/images/achtergrond.jpg);
  background-repeat: no-repeat;
  background-position: top left;
  }
 


I hope to hear from you,
Thanks so far,
Joost
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: full screen background

Post by Gregor »

I suggest you put the code into the to template according stylesheet.

Put a link to your site to see what happens.

Gregor
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

Re: full screen background

Post by Ziggywigged »

Place this code in a stylesheet attached to your template.
Also, make sure your path is correct. Are you sure it's upload and not uploads.

body {
background: url(uploads/images/achtergrond.jpg) left top no-repeat;
}
Take a penny, leave a penny.
joostsoo
Forum Members
Forum Members
Posts: 57
Joined: Sun Sep 14, 2008 12:47 pm

Re: full screen background

Post by joostsoo »

Hello,
Thanks for the update
Yes you are right about the path I missed an s there.
I will try  your suggestion
Regards Joost
Mantlet
Forum Members
Forum Members
Posts: 114
Joined: Fri Apr 28, 2006 9:42 am

Re: full screen background

Post by Mantlet »

Hi,

The way I understand your problem: You've build a site and pasted the whole design in a CMSMS Template? That means your styles are in the template.

What you need to do, is take out the stylesheet part, and put it in a Stylesheet file. Go to Layout -> Stylesheets and create a stylesheet and paste your code in there.

So remove this from the template:

Code: Select all

<style type="text/css">
body{
      background-image:url(/upload/images/achtergrond.jpg);
     background-repeat: no-repeat;
     background-position: top left; 
     }
  </style>
And place this part in the stylesheet:

Code: Select all

body{
      background-image:url(/upload/images/achtergrond.jpg);
     background-repeat: no-repeat;
     background-position: top left; 
     }
The and codes can be left out. Click the CSS button to the right and link the CSS to your template.

Now the CSS is out of the template and smarty will no longer struggle with the '{}' signs in CSS.

Good luck
Mantlet
Forum Members
Forum Members
Posts: 114
Joined: Fri Apr 28, 2006 9:42 am

Re: full screen background

Post by Mantlet »

Hi,

The way I understand your problem: You've build a site and pasted the whole design in a CMSMS Template? That means your styles are in the template.

What you need to do, is take out the stylesheet part, and put it in a Stylesheet file. Go to Layout -> Stylesheets and create a stylesheet and paste your code in there.

So remove this from the template:

Code: Select all

<style type="text/css">
body{
      background-image:url(/upload/images/achtergrond.jpg);
     background-repeat: no-repeat;
     background-position: top left; 
     }
  </style>
And place this part in the stylesheet:

Code: Select all

body{
      background-image:url(/upload/images/achtergrond.jpg);
     background-repeat: no-repeat;
     background-position: top left; 
     }
The and codes can be left out. Click the CSS button to the right and link the CSS to your template.

Now the CSS is out of the template and smarty will no longer struggle with the '{}' signs in CSS.

Good luck
Post Reply

Return to “Layout and Design (CSS & HTML)”