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.

adjust image width based on screen resolution

Discussion in 'HTML & Website Design' started by pizzaman, Sep 30, 2006.

  1. #1
    hello
    i have an image on my site and want its width to be half of the screen no matter what the size of the screen is
    also can i reduce the space between my lines with h4 tag
    i hope you understand
     
    pizzaman, Sep 30, 2006 IP
    earlpearl likes this.
  2. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can use a percentage for the width attribute such as <img src="whatever" width="50%">

    For space between lines with <h4> tag, all I know is to use the style rule h4{line-height:0}
    Also I think you could set a negative margin-bottom such as h4{margin-bottom:-8px}
     
    phree_radical, Sep 30, 2006 IP
  3. pizzaman

    pizzaman Active Member

    Messages:
    4,053
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    90
    #3
    thanks everything is nice now
     
    pizzaman, Oct 1, 2006 IP