DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Shawn Guest

    Division is resizing.


    Hello,

    I'm trying to make a division with these dimensions:

    Height: 12px
    Width: 28px

    I want the background of the division to be red, but when I make it red,
    the division resizes to be bigger. (More height) Why is it doing this? I've
    tried using a 1px image of red to fill it, does the same thing as using the
    background-color property in CSS1. Any help would be appreciated, or if somebody
    could make it happen, i'm humbly awaiting some help.

    Thank you

  2. #2
    Chris McGinlay Guest

    Re: Division is resizing.

    Shawn wrote:

    >
    > Hello,
    >
    > I'm trying to make a division with these dimensions:
    >
    > Height: 12px
    > Width: 28px
    >
    > I want the background of the division to be red, but when I make it red,
    > the division resizes to be bigger. (More height) Why is it doing this?
    > I've tried using a 1px image of red to fill it, does the same thing as
    > using the background-color property in CSS1. Any help would be
    > appreciated, or if somebody could make it happen, i'm humbly awaiting some
    > help.
    >
    > Thank you


    I think that background-color behaviour is browser specific. Do you have
    the same problem in Opera/IE/NS?

    As an alternative, you might find the combined property

    background: red;

    to work more consistently.

    Chris



    --
    www.ascent.zetnet.co.uk
    Standards Compliant Web Design

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links