Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2007
    Posts
    4,664
    Tokens
    1,279

    Latest Awards:

    Exclamation Snap Layers Help!

    I am making a website and I need to use layers to hold text infront of an image but in different sized browsers they don't stay where I want them to. It also happens when the browser is not maximised on my laptop. It isn't just the browser I'm using it's also like this in FireFox.

    I need to know how to get a layer to stay still/snap it to the image I put it infront of.

    Please could you help! +rep

    Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks .
    Last edited by Mr.OSH; 05-06-2007 at 03:59 PM.


  2. #2
    Join Date
    Dec 2006
    Posts
    521
    Tokens
    0

    Default

    <div style='width: (enter number here of image width); height: (ditto but for height); background: url(url here);">
    text</div>

  3. #3
    Join Date
    Jan 2007
    Posts
    4,664
    Tokens
    1,279

    Latest Awards:

    Default

    That doesn't work, all that is is a simple div with a background image, your html skills are also not really that good "/

    I have a layer and I want to be able to anchor it down! I don't know why opensourcehost moved this thread to coding as it isn't a code I need. I think it's some kind of tool in dreamweaver that I need to find but can't!


  4. #4
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    Quote Originally Posted by dansdiscos View Post
    your html skills are also not really that good
    Lol anyways...

    Could you use a div with position:absolute;?

  5. #5
    Join Date
    Jan 2007
    Posts
    4,664
    Tokens
    1,279

    Latest Awards:

    Default

    I really have no idea, all i know is that it moves to be in that position on the screen no matter what sreen size you have or if you minimize it "/ I'm using a 19" widescreen (or I think I am, it's a pretty big screen for a laptop and it's most certainly wide) and on all the computers in my school which are mostly 14" it comes up all wrong, here's my not very well coded layout: click here


  6. #6
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    Here's an idea: learn how to ******* code.


    You don't like me
    Chances are I don't like you.

  7. #7
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Oh dear... Sygon is one of the best coders around on HxF. That DIV is good, as you can write in it, but still have the image, thats how to properley code :|
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  8. #8
    Join Date
    Jan 2007
    Posts
    4,664
    Tokens
    1,279

    Latest Awards:

    Default

    off topic: Jaffa Cakes what has gotten into you :S you have a girly Avatar!!!


Posting Permissions

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