Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Fixed background

  • 16-08-2000 1:37pm
    #1
    Closed Accounts Posts: 2,256 ✭✭✭


    Is there anyway i can get a background to stay fixed so that when u scroll through the page the backgorund image doesn't move?If so how?


Comments

  • Registered Users, Registered Users 2 Posts: 12,309 ✭✭✭✭Bard


    Only IE4 and above have this feature, so be wary of using it if you want your site to be cross browser compatible.

    The thing to do is to add the parameter " bgproperties='fixed' " to your <body> tag.

    Sin Sin

    Slán



    Bard
    |home page


  • Closed Accounts Posts: 2,256 ✭✭✭Molly


    Thanks bard


  • Registered Users, Registered Users 2 Posts: 12,309 ✭✭✭✭Bard


    no plobrem biggrin.gif

    Bard
    |home page


  • Subscribers Posts: 4,419 ✭✭✭PhilipMarlowe


    like so is it...?
    &lt;body background="whatever.jpg" bgproperties="fixed"&gt;
    


  • Registered Users, Registered Users 2 Posts: 12,309 ✭✭✭✭Bard


    Originally posted by Licksy20:
    like so is it...?

    &lt;body background="whatever.jpg" bgproperties="fixed"&gt;
    

    aye, that'd be it


    Bard
    |home page


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 5,335 ✭✭✭Cake Fiend


    Say you're using IE3 with that code - will the bg now scroll, or will it just be a blank bg or will it go all weird or what?


  • Registered Users, Registered Users 2 Posts: 12,309 ✭✭✭✭Bard


    I don't know exactly- haven't used IE3 in years and am not going to go installing it now over IE5.1..! I'd imagine it'd just ignore the code and scroll the background as normal... unless I'm wrong about the code being for IE4 and upwards, - perhaps its IE3 and upwards... I don't think so though...

    Bard
    |home page


  • Moderators, Social & Fun Moderators Posts: 28,633 Mod ✭✭✭✭Shiminay


    I think you're right Niall - generally, if a browser doesn't recognise a tag property, it'll ignore it.



    All the best,

    Dav
    @B^)
    My page of stuff


  • Registered Users, Registered Users 2 Posts: 12,309 ✭✭✭✭Bard


    Yip. t'is true with parameters anyway- such as bgproperties. This is therefore quite safe to use, but you have to keep in mind how the page will look if the BG *does* scroll.

    By the same token, if you want to use zero margins so that the page contents appear completely top and left justified, you have to use topmargin=0 and leftmargin=0 AS WELL AS marginheight=0 and marginwidth=0 to satisfy both Netscape and IE. Netscape will ignore the IE specific parameters and use its own and vice-versa.

    With tags though- such as <script>, <marquee> etc. it's usually best to ensure in some other way that the older browsers wont try to display it, such as commenting out the internals of the script tag or using browser detection in ASP to not display the MARQUEE tag if its not IE.

    my 2 cents... again biggrin.gif

    Bard
    |home page


Advertisement