1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

css command for css background width

Discussion in 'CSS' started by hitboy, May 3, 2007.

  1. #1
    the code below is what I exactly use for the css yet I want to change the width of the for example if its 240px i want to make it
    {
    background-attachment: fixed;
    background: #333;
    color: #444;
    font: 78%/1.6em Georgia, Verdana, Arial, Serif;
    margin: 0 0 30px;
    padding: 0;
    text-align: center;
    }

    So tried a couple of recombination's. I still cant figure it out
     
    hitboy, May 3, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Sometimes, I'm not the brightest bulb on the xmas tree, so I have no idea what you're after. Can you try again and include a test case, including the typical html?

    cheers,

    gary
     
    kk5st, May 3, 2007 IP
  3. the_pm

    the_pm Peon

    Messages:
    332
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The post doesn't make a whole lot of sense - sorry :)

    But the thread title leads me to believe you're trying to use CSS to change the dimensions of the image behind your container. If this is the case, you cannot do this using CSS...yet. CSS3 will have background dimension rules. If you can hold off on building your site for another 10-15 years, you'll be golden :)
     
    the_pm, May 4, 2007 IP
    kk5st likes this.