Jump to content

increase height of an image using css property


php_begins

Recommended Posts

http://www.texaslakesandponds.com/index_html.html

I need help increasing the height of the planks on the left by 2 or 3px.(Home,Aerators etc)

something similar to <img src='' height='' width=''> property in html.

But since i am using css i am using line-height property. If i increase the height, the image gets repeated at the bottom. I tried the no-repeat property, but to no avail.

I also tried the background-size property, but it didnt help much either. Can someone help me out with the code.

 

Link to comment
Share on other sites

1. just to make a pointer, the html layout was poorly thought out, why are you using a combination of tables and lists, normally its one or the other, there is no need for a list inside of a table column that only has one list item inside.

 

2. you can use the background-size: property for this, but i would recommend editing the image itself, since using background-size will distort the image.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.