www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > CSS

    CSS Discussion and technical support relating to Cascading Style Sheets.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 12-26-2002, 01:17 PM
    craban craban is offline
    Registered User
     
    Join Date: Dec 2002
    Posts: 4
    div image backgrond

    i'm looking for a way to put a different background image in a DIV(a vertical left border and a top border), which should be repeated on the X or Y axis.
    Is this possible?

    Craban
    Reply With Quote
      #2  
    Old 12-26-2002, 05:54 PM
    Stefan Stefan is offline
    HTML-Mushroom
     
    Join Date: Nov 2002
    Posts: 984
    Re: div image backgrond

    Quote:
    Originally posted by craban
    i'm looking for a way to put a different background image in a DIV(a vertical left border and a top border), which should be repeated on the X or Y axis.
    Is this possible?
    Exactly what are you asking?
    If you can repeat 1 image in y and a different in x direction?

    Then no, not in the same div.
    But you could use 2 containers with one repeat y and the other repeat x.

    eg
    <div style="background:url(image.png) repeat-x;">
    <div style="background:url(image2.png) repeat-y;">
    </div></div>
    __________________
    // Stefan Huszics
    Reply With Quote
      #3  
    Old 12-27-2002, 09:11 AM
    craban craban is offline
    Registered User
     
    Join Date: Dec 2002
    Posts: 4
    I've got a public CSS template wich uses DIV instead of frames.
    The template exists of a horizontal top, and three colums. With frames i can set a different background for the top and another for the left border.
    With DIV i can set the background color, but can i put a background imagein each DIV?
    http://users.pandora.be/strange-ente...border-all.JPG
    This is what it should look like. i sliced small portions of the image to tile the top and a slice for the left border wich can be repeated.
    Other images such as logo, the curve slice and text can be positioned.

    this should be a bit more clearer.

    regards
    craban

    Last edited by craban; 12-27-2002 at 01:15 PM.
    Reply With Quote
      #4  
    Old 12-27-2002, 10:34 AM
    Stefan Stefan is offline
    HTML-Mushroom
     
    Join Date: Nov 2002
    Posts: 984
    Quote:
    Originally posted by craban
    [b]I've got a public CSS template wich uses DIV instead of frames.
    The template exists of a horizontal top, and three colums. With frames i can set a different background for the top and another for the left border.
    With DIV i can set the background color, but can i do this with DIV?
    http://users.pandora.be/strange-ente...border-all.JPG
    This is what it should look like.
    Yes, you can do that with divs and CSS.
    You just put the respective slice as backgroundimage in the correct div.
    __________________
    // Stefan Huszics
    Reply With Quote
      #5  
    Old 12-27-2002, 10:35 AM
    swon's Avatar
    swon swon is offline
    Registered User
     
    Join Date: Dec 2002
    Location: Switzerland
    Posts: 424
    Why don't you use tables?
    __________________


    Swon
    Reply With Quote
      #6  
    Old 12-27-2002, 02:49 PM
    craban craban is offline
    Registered User
     
    Join Date: Dec 2002
    Posts: 4
    Quote:
    Yes, you can do that with divs and CSS.
    You just put the respective slice as backgroundimage in the correct div.
    is there anything special that should happen in the BODY tag?

    This is the tag that starts/heads the div of the left column.:
    <div id="leftcontent"> </div>

    could you format the line of code for me, i've been at it the whole afternoon, suffice it to say that i'm a newbie taking on more than i can chew.

    is it <img style... using "background" somewhere ??

    Thanks in advance
    regards
    Craban
    Reply With Quote
      #7  
    Old 12-27-2002, 11:01 PM
    Stefan Stefan is offline
    HTML-Mushroom
     
    Join Date: Nov 2002
    Posts: 984
    Well with something like this it's easiest to show a compleate solution as there are many ways you can achive the same effect. Partial solitions thus have a tendency to be a bit vague.

    Look here for an example of how to do it
    http://hem.bredband.net/b103277/layoutremake/
    __________________
    // Stefan Huszics

    Last edited by Stefan; 12-27-2002 at 11:08 PM.
    Reply With Quote
      #8  
    Old 12-28-2002, 05:18 AM
    craban craban is offline
    Registered User
     
    Join Date: Dec 2002
    Posts: 4
    Thumbs up thanks

    Thank you Stefan, you've been a big help.

    Regards
    Craban
    Reply With Quote
      #9  
    Old 12-28-2002, 11:38 AM
    Rick Bull's Avatar
    Rick Bull Rick Bull is offline
    Registered User
     
    Join Date: Nov 2002
    Location: England
    Posts: 275
    That page seems to be a bit messed up in my version of Mozilla (1.2.1) and the content isn't all visible, but I think it must be a bug, I can't see any coding errors This seems to fix it though: #content {position:absolute; top:90px; left: 84px;}
    __________________
    http://www.rickbull.co.uk/
    Help get full alpha-transparency in Internet Explorer - probably won't help, but worth a try
    Reply With Quote
      #10  
    Old 12-28-2002, 05:28 PM
    Stefan Stefan is offline
    HTML-Mushroom
     
    Join Date: Nov 2002
    Posts: 984
    Quote:
    Originally posted by Rick Bull
    That page seems to be a bit messed up in my version of Mozilla (1.2.1) and the content isn't all visible, but I think it must be a bug, I can't see any coding errors This seems to fix it though: #content {position:absolute; top:90px; left: 84px;}
    Hmm indeeed.
    It loosk as it should in
    Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3a) Gecko/20021226 Phoenix/0.5

    But Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1) Gecko/20020826
    is also broken.

    Wonder if the bug is also present in Moz 1.0x
    If it's only 1.1-1.2 it won't matter too much I guess, since people will quickly move on to 1.3 but if 1.0 is also affected by the bug then NS 7 is also likely to be :/

    In any case it only seems to be a bug regarding the top margin. This works too in Mozilla
    #content {margin:0 10px 0 84px; padding:90px 0 0;}
    __________________
    // Stefan Huszics
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:49 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.