Division is resizing.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Division is resizing.

  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

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center