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 > HTML

    HTML Discussion and technical support for building, using and deploying HTML sites.

    Reply
     
    Thread Tools Rate Thread Display Modes
      #1  
    Old 10-16-2006, 05:09 AM
    invisible kid invisible kid is offline
    Registered User
     
    Join Date: May 2005
    Posts: 47
    2 pixel background tile problem

    I have a 2 pixel high background tile which is repeating vertically down the page.

    This is great as it means my content area can expand to accomodate text size being increased.

    However, if the content area expands to a certain height, only 1 pixel of the 2 pixel background may be displayed. This causes a break between the background tile and the footer image at the bottom of the page.

    Here's a screenshot. If you look at the dots you can see the break:

    http://img222.imageshack.us/img222/5...problemym9.gif

    Is there anyway I can ensure that the whole of the background tile is always shown, yet still keep the height of my content area dynamic?

    Or is there a completely different way around this problem?
    Reply With Quote
      #2  
    Old 10-16-2006, 08:24 AM
    WebJoel's Avatar
    WebJoel WebJoel is offline
    Super Moderator
     
    Join Date: Dec 2005
    Location: American, living in Toronto, ON. CANADA
    Posts: 6,688
    It is difficult to look at an image and diagnose a problem's solution. I am not really sure what your complaint is, from just looking at the image. But I do see a infinitesimally small little 'gappy' thing between the vertical dotted border on the right-side of what I'd call the "content" area. If "border-bottom: 0 none;" on "content" and "border-top: 0 none;" on "footer" doesn't cure this, there are other possible solutions.
    -Instead of a background-image tiling along the y-axis (vertically) (-did you declare "img {border:0;}" in your STYLE? You should have or else the image might be picking up these from IE), why not declare a "border-right:1px dotted #252525;" on your content DIV and create the dotted border that way. You could cleverly devise a way to nest one DIV with this inside of a another div with this, and the outer expands as content is added to the inner, and acheive a 'double dotted border' that way...
    __________________
    Help Save Ana My Portal: I Build WebPages
    Pricing? Read:http://www.webdeveloper.com/forum/pricing_faq.html
    AUP: http://www.jupitermedia.com/corporate/privacy/aup.html
    I test with: Firefox, Mozilla, Opera, Safari-on-XP, Google Chrome, SeaMonkey
    Internet.com freelancers
    Reply With Quote
      #3  
    Old 10-16-2006, 09:44 AM
    invisible kid invisible kid is offline
    Registered User
     
    Join Date: May 2005
    Posts: 47
    Quote:
    Originally Posted by WebJoel
    It is difficult to look at an image and diagnose a problem's solution. I am not really sure what your complaint is, from just looking at the image. But I do see a infinitesimally small little 'gappy' thing between the vertical dotted border on the right-side of what I'd call the "content" area. If "border-bottom: 0 none;" on "content" and "border-top: 0 none;" on "footer" doesn't cure this, there are other possible solutions.
    -Instead of a background-image tiling along the y-axis (vertically) (-did you declare "img {border:0;}" in your STYLE? You should have or else the image might be picking up these from IE), why not declare a "border-right:1px dotted #252525;" on your content DIV and create the dotted border that way. You could cleverly devise a way to nest one DIV with this inside of a another div with this, and the outer expands as content is added to the inner, and acheive a 'double dotted border' that way...
    Thanks for your reply.

    Just to clarify, where you see the gap in the dotted line, that is where the content area ends and the footer area begins.

    The content area has the 2-pixel background tile repeating vertically.

    The dotted line you see is part of the background tile image, not the dotted line border property in HTML.

    The footer area is just an image.

    The problem is that sometimes only 1 pixel of the 2 pixel background is displayed. If, for example, the height of the content area expands to 201 px rather than 200 px.

    This is what's creating that gap.

    I think the solution you've proposed might work, but it would mean a serious re-working of the page design as the dots wouldn't line up as they do at present.

    Last edited by invisible kid; 10-16-2006 at 09:48 AM.
    Reply With Quote
      #4  
    Old 10-16-2006, 11:22 AM
    WebJoel's Avatar
    WebJoel WebJoel is offline
    Super Moderator
     
    Join Date: Dec 2005
    Location: American, living in Toronto, ON. CANADA
    Posts: 6,688
    These 'two dot' background image(s), -are the dots horizontal to each other? Side-by-side? If so, can this 2-px graphic be made 1-px?

    Is the graphic like
    ..
    ..


    ?

    Is so, can you try:
    ..

    ?
    Be sure to have:
    <style>
    img {border:0; padding:0; margin:0;}
    </style>
    (being over-safe here, -might catch something being defaulted into img pararmeter)
    __________________
    Help Save Ana My Portal: I Build WebPages
    Pricing? Read:http://www.webdeveloper.com/forum/pricing_faq.html
    AUP: http://www.jupitermedia.com/corporate/privacy/aup.html
    I test with: Firefox, Mozilla, Opera, Safari-on-XP, Google Chrome, SeaMonkey
    Internet.com freelancers
    Reply With Quote
      #5  
    Old 10-17-2006, 04:08 AM
    invisible kid invisible kid is offline
    Registered User
     
    Join Date: May 2005
    Posts: 47
    Quote:
    Originally Posted by WebJoel
    These 'two dot' background image(s), -are the dots horizontal to each other? Side-by-side? If so, can this 2-px graphic be made 1-px?

    Is the graphic like
    ..
    ..


    ?

    Is so, can you try:
    ..

    ?
    Be sure to have:
    <style>
    img {border:0; padding:0; margin:0;}
    </style>
    (being over-safe here, -might catch something being defaulted into img pararmeter)
    Hi Joel,

    The dot background is:

    .
    space

    So when tiled it goes:

    .
    space
    .
    space
    .
    space

    So, as you can see I need to keep it 2 pixels high.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools
    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 01:08 PM.



    Acceptable Use Policy

    Internet.com
    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

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