php_begins Posted January 21, 2012 Share Posted January 21, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/255483-increase-height-of-an-image-using-css-property/ Share on other sites More sharing options...
AyKay47 Posted January 21, 2012 Share Posted January 21, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/255483-increase-height-of-an-image-using-css-property/#findComment-1309871 Share on other sites More sharing options...
php_begins Posted January 21, 2012 Author Share Posted January 21, 2012 well the previous developer programmed it that way. I needed a quick fix for now..so background-size is the only option? Quote Link to comment https://forums.phpfreaks.com/topic/255483-increase-height-of-an-image-using-css-property/#findComment-1309873 Share on other sites More sharing options...
AyKay47 Posted January 21, 2012 Share Posted January 21, 2012 the alternative is editing the image itself with an image editor software. Quote Link to comment https://forums.phpfreaks.com/topic/255483-increase-height-of-an-image-using-css-property/#findComment-1309874 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.