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 9 of 9
  1. #1
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default CSS Image background

    How can I show a image on the left and right via css?

    I am using this at the mo

    HTML Code:
    background-image: url(images/clouds_left.gif);
    background-position: top left;
    background-color: #1F587D;
    background-image: url(images/clouds_right.gif);
    background-position: top right;
    background-repeat: no-repeat;
    But it will only show one of the 2 image backgrounds

    Can anyone help? Rep added+

  2. #2
    Join Date
    Dec 2005
    Location
    Scotland
    Posts
    74
    Tokens
    0

    Default

    Hmm... You could use this and I think should work this is an example btw for content box

    .content {
    background-color: #F5F5F5;
    border-left: 1px solid #333333;
    border-right: 1px solid #333333;
    border-bottom: 1px solid #333333;
    }

    then in html put:

    <div class="content"><img src="http://yourlink"></div>
    </div>

    Hope that was what you were looking for if not sorry


  3. #3
    Join Date
    Jan 2006
    Location
    Denton | UK
    Posts
    213
    Tokens
    0

    Default

    Hey,

    It would be a last resort but show them in PHP includes lol.

    - Dan

  4. #4
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Code:
    background-color: #1F587D;
    background-image: url(images/clouds.gif);
    background-position: top left;
    background-repeat: no-repeat;
    I am now using this, I have put the left and right Images in one image.

    If anyone has any more ideas feel free to say (CSS only)

    Thanks

    And PHP include are pretty pointless for this
    Last edited by Luckyrare; 28-01-2006 at 10:37 AM.

  5. #5
    Join Date
    Jun 2004
    Location
    London
    Posts
    116
    Tokens
    0

    Wink float

    try using
    Code:
    float: left;
    This is off memory, might be right

  6. #6
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    mmmm... Ill try that in a mo

    HTML Code:
    <td width="8" background="images/left.png" height="100%"></td>
    <td width="600" height="100%" bgcolor="#3585B5"></td>
    <td width="8" background="images/right.png"></td>
    I have found this wierd. How can I make my border hit the bottom of the browser with no scroll ect. 100% doesnt seem to work ;P

    Thanks
    -LR

  7. #7
    Coding4Newbs Guest

    Default

    somin like <body marginheight="0" etc.

  8. #8
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    HTML Code:
    background-image: url(images/clouds_left.gif);
    background-position: top left;
    background-color: #1F587D;
    background-image: url(images/clouds_right.gif);
    background-position: top right;
    background-repeat: repeat;

    ??

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

    Latest Awards:

    Default

    Quote Originally Posted by Luckyrare
    mmmm... Ill try that in a mo

    HTML Code:
    <td width="8" background="images/left.png" height="100%"></td>
    <td width="600" height="100%" bgcolor="#3585B5"></td>
    <td width="8" background="images/right.png"></td>
    I have found this wierd. How can I make my border hit the bottom of the browser with no scroll ect. 100% doesnt seem to work ;P

    Thanks
    -LR
    Eeew tables...

Posting Permissions

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