• hi everyone, i want to put the following codes in my blog. but only in the entry section not the whole webpage.

    img {
    padding: 0.5em;
    border: 1px solid silver;
    }

    my webpage contains a header, footer and a index. i only wanted my image properties to apply in index only, how do i do that? because my header contains a photoshop design image of mine. i do not want a border for that.

    thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lawrencesiow

    (@lawrencesiow)

    i mean how to pull that off, editing in my css?

    thanks.

    If you want all images except your header image to use the properties that you specified, just put what you have in the CSS file and specify a separate class or ID for the header, like:

    <img src="myheaderimage.jpg" id="header" />

    Then create a separate entry in your CSS file that targets the header image like:

    img#header {
    border: none;
    padding: none;
    }

    or whatever styles you want to apply to the header image.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘img style’ is closed to new replies.