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 5 of 5
  1. #1
    Join Date
    Dec 2006
    Location
    None of your business!
    Posts
    2,492
    Tokens
    50

    Latest Awards:

    Talking DIV ISSUE - Please Help.

    This is probably a silly question but....

    When I use DIV ID's they don't stay in place in FireFox and some other browser and only seem to work on IE. Is there anyway to stop this? Also they move on different screen resolutions. Is there a way of stopping this?
    This is the kind of thing I mean -
    <div id="Layer1">
    <div align="center">
    <p><span class="style1">Welcome!"</span></p>
    </div>
    It would be great if you could help with this guys.... I might be making a silly mistake.. I'm using Dreamweaver 8 if that helps?
    Last edited by Mr.OSH; 22-03-2007 at 06:05 PM.

  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    im somewhat confused here? with the posted code, you closed the center div, but not the one with the id ?
    Was there any CSS attached to that?

    Also align center is bad codeing, use css.. style="text-align:center;"

  3. #3
    Join Date
    Dec 2006
    Location
    None of your business!
    Posts
    2,492
    Tokens
    50

    Latest Awards:

    Default

    Quote Originally Posted by 01101101entor View Post
    im somewhat confused here? with the posted code, you closed the center div, but not the one with the id ?
    Was there any CSS attached to that?

    Also align center is bad codeing, use css.. style="text-align:center;"
    In dreamweaver it allows you to create a "layer" this allows you to position things easier around the page and is better than tables for laying things out. However this does not work in firefox. I didn't have any css attached to it and all that was done automatically by dreamweaver. I was just wondering why it doesn't work.

  4. #4
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by opensourcehost View Post
    In dreamweaver it allows you to create a "layer" this allows you to position things easier around the page and is better than tables for laying things out. However this does not work in firefox. I didn't have any css attached to it and all that was done automatically by dreamweaver. I was just wondering why it doesn't work.
    Layers as simply absoultly positioned divs, they cant function without the CSS.
    Also layers are a bad idea and far inferior to tables being absoultly positioned as opposed to fluid and flexible.
    Dreamweave would just automaticaly add the css, without the css a layer wont work in IE or Firefox.

  5. #5
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    You don't code like that.

    You have a "container" the holds all the DIVS then working down you add the divs in order and set the width, hight, etc.

    But not never add absolute positioning.

Posting Permissions

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