+ Reply to Thread
Results 1 to 4 of 4

Thread: Fixed contents

  1. #1
    kylemj is offline Junior Member
    Join Date
    Sep 2008
    Posts
    5

    Default Fixed contents

    I have created a background to go on the website and have manage to apply it successfully, but i want to have the contents on the page "fixed" so it stays in the centre and fits in with the background.

    The background:
    http://media.katienpeter.com/templates/css/vsharebg.jpg

    The video site:
    http://media.katienpeter.com/index.php

    It works fine when in widescreen (attachment) but not when the display window is different (not maxamized)

    So it works sort of like the main site:
    http://katienpeter.com/wordpress/

  2. #2
    grynmoors is offline Senior Member
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,459

    Default Re: Fixed contents

    In the BODY class of the styles.css put this:

    Code:
    background: url(../images/yourbackgroundimage.jpg) repeat-y 50% 0 #ffffff;
    
    background-attachment:fixed;
    Note the background image properties for the repeat and color...change that to suit your site (whether it's no-repeat, repeat-x, repeat-y or whatever color the background would be if the image wasn't there).

    Also: you *may* have to set the width as well as the max and min width of the page as a whole. I like to use 1000px for the width of pages.


  3. #3
    kylemj is offline Junior Member
    Join Date
    Sep 2008
    Posts
    5

    Default Re: Fixed contents

    works perfectly thank you!

  4. #4
    grynmoors is offline Senior Member
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,459

    Default Re: Fixed contents

    You're very much welcome. Glad to be of help.


+ Reply to Thread

Similar Threads

  1. Delete all (video) contents in video directory
    By Dafydd in forum Feature Requests
    Replies: 9
    Last Post: 12-03-2008, 03:59 PM
  2. Use of Brithday confirmation before adult contents
    By ataimoor in forum General Discussions
    Replies: 3
    Last Post: 07-02-2008, 07:26 AM
  3. Multiserver Bug Fixed
    By ataimoor in forum Fixed Bugs
    Replies: 2
    Last Post: 05-06-2008, 08:52 PM
  4. View channel contents
    By devarioj in forum Feature Requests
    Replies: 1
    Last Post: 09-01-2007, 09:06 PM
  5. [FIXED] Not Sure How much of a bug this is BUT
    By zeffer in forum Fixed Bugs
    Replies: 4
    Last Post: 05-15-2007, 02:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts