![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm currently trying to get an image to fit within a table on my web site and have come up against a slight problem. The page is here http://www.jedsite.info in the bottom rhs corner. I want the image to fill the box it is currently in. I'm using the following for the css ... I cannot make the image fit it correctly - any suggestions anyone? |
#3
| |||
| |||
|
|
I'm currently trying to get an image to fit within a table on my web site and have come up against a slight problem. The page is here http://www.jedsite.info in the bottom rhs corner. I want the image to fill the box it is currently in. I'm using the following for the css .... I cannot make the image fit it correctly - any suggestions anyone? |
#4
| |||
| |||
|
|
Barely Audible wrote: I'm currently trying to get an image to fit within a table on my web site and have come up against a slight problem. The page is here http://www.jedsite.info in the bottom rhs corner. I want the image to fill the box it is currently in. I'm using the following for the css ... I cannot make the image fit it correctly - any suggestions anyone? Yes. You've forgotten to account for font ascenders and descenders. Images don't have those. Remove the whole table the image is in, and put it in a <div> instead. Before you get much further, please see: http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.jedsite.info% 2F "Result: 114 Errors, 14 warning(s)" Use 100% for the body font, and don't reduce that for content. Yours is too small for me to read. http://tekrider.net/html/fontsize.php The page doesn't fit in my browser window - horizontal scrollbars are not liked by anyone. |
#5
| |||
| |||
|
|
In article <7du4dbF2chirgU1 (AT) mid (DOT) individual.net>, Barely Audible <somewhere (AT) overthe (DOT) rainbow.com> wrote: I'm currently trying to get an image to fit within a table on my web site and have come up against a slight problem. The page is here http://www.jedsite.info in the bottom rhs corner. I want the image to fill the box it is currently in. I'm using the following for the css .... I cannot make the image fit it correctly - any suggestions anyone? A square image cannot quite fit a box that has rounded corners in - of course. But let us assume you have none of your CSS at all except td {border: 1px solid;} You have paragraphs, that have nothing much to be seen in them, above and below the image. These create a space above and below the image! Why would you do this? It is like adding two spoons of sugar to a cup of tea when you like unsweetened! In addition to this we come to a seemingly well kept secret, images are inline objects by default and are treated like big capitol letters, space being provided for them by default (as if in case they are smaller case and have descenders and ascenders). You can change the default display property on the image to display: block; to get rid of this factor. And the display: block cured the last problem - thanks D. |
#6
| |||
| |||
|
|
The errors I am not too worried about as I am in the middle of converting the entire site from HTML 3 to XHTML11 ... |
#7
| |||
| |||
|
|
It had been a long day! thats all I can plead ;-) The errors I am not too worried about as I am in the middle of converting the entire site from HTML 3 to XHTML11 and fix the errors across the site as I come across them (thank god for Search & Replace) |
#8
| |||
| |||
|
|
dorayme wrote: In article <7du4dbF2chirgU1 (AT) mid (DOT) individual.net>, Barely Audible <somewhere (AT) overthe (DOT) rainbow.com> wrote: |
#9
| |||
| |||
|
|
Barely Audible wrote: It had been a long day! thats all I can plead ;-) The errors I am not too worried about as I am in the middle of converting the entire site from HTML 3 to XHTML11 and fix the errors across the site as I come across them (thank god for Search & Replace) Not too worried about errors with *XHTML*? HTML3.2 > XHTML1.1, a fools errand IMO. If you want to do a it right HTML3.2 > HTML4.1 STRICT would be a better course. You don't have a really pressing need for XHTML do you? |
#10
| |||
| |||
|
|
Jonathan N. Little wrote: Barely Audible wrote: It had been a long day! thats all I can plead ;-) The errors I am not too worried about as I am in the middle of converting the entire site from HTML 3 to XHTML11 and fix the errors across the site as I come across them (thank god for Search & Replace) Not too worried about errors with *XHTML*? HTML3.2 > XHTML1.1, a fools errand IMO. If you want to do a it right HTML3.2 > HTML4.1 STRICT would be a better course. You don't have a really pressing need for XHTML do you? Advantages of HTML 4.1 over XHTML 1.1 Jonathan? Do all browsers cater for it yet? |
![]() |
| Thread Tools | |
| Display Modes | |
| |