A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Controlling Background Size

  1. #1
    Senior Member
    Join Date
    Jul 2003
    Posts
    166

    Controlling Background Size

    Hello,

    I have a list which we have set up so that the numbers have a background graphic behind them. The problem I am finding is that the background size is dependent on the number and size of digits that appear above it. If you go to this page you will see what I mean:

    http://www4.clearlight.com/~sequoia/residential.shtml

    Here is the CSS that controls this:

    Code:
    }
    .map_dingbat {
    	font-weight: normal;
    	padding: 2px;
    	background-image: url(imgs/map_dingbat.gif);
    	background-repeat: repeat;
    }
    .map_tiny {
    	font-family: Verdana, Arial, Helvetica, sans-serif, Tahoma;
    	font-size: 10px;
    	font-weight: normal;
    	color: #000000;
    	padding-top: 4px;
    	line-height: 20px;
    }
    What I would like to do is set up the CSS so the green background stays the same width for each number so all the numbered boxes are the same width.

  2. #2
    No I can't do it by tommorow.. 1stbite's Avatar
    Join Date
    Feb 2003
    Location
    UK
    Posts
    1,300
    erm:

    Code:
    .map_dingbat {
            width: 15px;
            height: 15px;
            text-align: center;
    	font-weight: normal;
    	padding: 2px;
    	background-image: url(imgs/map_dingbat.gif);
    	background-repeat: repeat;
    	display: table-cell;
    }
    .map_tiny {
    
    	font-family: Verdana, Arial, Helvetica, sans-serif, Tahoma;
    	font-size: 10px;
    	font-weight: normal;
    	color: #000000;
    	padding-top: 4px;
    	line-height: 14px;
    }
    and in a blink of an eye...
    Media and Multimedia Courses in Nottingham - First Diploma | IMedia | HND | Foundation Degrees | BA(Hons) Top Ups.

    Give a Twit a chance!

  3. #3
    Senior Member
    Join Date
    Jul 2003
    Posts
    166
    Awesome! Thanks for your help.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center