![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Please look at: https://testbed.odysseyshipping.com See the large graphic? It's contained within a DIV. I don't want to set fixed width/height using HTML. I'd rather that the image just expand or contract (in this case, the latter) to fill the DIV without creating a horizontal scroll bar. Can this be done with CSS or do I have to go to JavaScript? |
#3
| |||
| |||
|
|
"donpro" <donpro-2... (AT) rogers (DOT) com> wrote in message news:171626c5-aaf1-4c88-ad7f-a248b4535d96 (AT) c1g2000yqg (DOT) googlegroups.com... Please look at:https://testbed.odysseyshipping.com See the large graphic? *It's contained within a DIV. *I don't want to set fixed width/height using HTML. *I'd rather that the image just expand or contract (in this case, the latter) to fill the DIV without creating a horizontal scroll bar. *Can this be done with CSS or do I have to go to JavaScript? img width='100%' ... but why, that will distort the image. BTW half a megabyte for that image is outrageous. |
#4
| |||
| |||
|
|
"donpro" <donpro-2... (AT) rogers (DOT) com> wrote in message news:171626c5-aaf1-4c88-ad7f-a248b4535d96 (AT) c1g2000yqg (DOT) googlegroups.com... Please look at:https://testbed.odysseyshipping.com See the large graphic? It's contained within a DIV. I don't want to set fixed width/height using HTML. I'd rather that the image just expand or contract (in this case, the latter) to fill the DIV without creating a horizontal scroll bar. Can this be done with CSS or do I have to go to JavaScript? img width='100%' ... but why, that will distort the image. BTW half a megabyte for that image is outrageous. So simple. Works, thanks. Now can someone tell me why there is white space between the image and the footer? |
|
An yes, half a megabyte is high but it's what the client wants. |
#5
| |||
| |||
|
|
"donpro" <donpro-2... (AT) rogers (DOT) com> wrote in message news:608a47aa-f652-4df7-b4d9-c192262c7d51 (AT) r37g2000prr (DOT) googlegroups.com... On Dec 10, 6:50 pm, "rf" <r... (AT) invalid (DOT) com> wrote: "donpro" <donpro-2... (AT) rogers (DOT) com> wrote in message news:171626c5-aaf1-4c88-ad7f-a248b4535d96 (AT) c1g2000yqg (DOT) googlegroups.com... Please look at:https://testbed.odysseyshipping.com See the large graphic? It's contained within a DIV. I don't want to set fixed width/height using HTML. I'd rather that the image just expand or contract (in this case, the latter) to fill the DIV without creating a horizontal scroll bar. Can this be done with CSS or do I have to go to JavaScript? img width='100%' ... but why, that will distort the image. BTW half a megabyte for that image is outrageous. So simple. *Works, thanks. *Now can someone tell me why there is white space between the image and the footer? img {vertical-align: bottom;} An yes, half a megabyte is high but it's what the client wants. It might be what the client wants, but is it what the clients customers want? When I saw the terribly slow painting of that image as it slowly downloaded *my* initial thoughts were: OMG if they have stuffed up that image so much what can I expect from the rest of the site, or indeed the rest of the company. Harsh words I know, but customers are fickle things. |
#6
| |||
| |||
|
|
Worked like a charm, thanks. |
#7
| |||
| |||
|
|
On Dec 10, 6:50*pm, "rf" <r... (AT) invalid (DOT) com> wrote: .... BTW half a megabyte for that image is outrageous. .... An yes, half a megabyte is high but it's what the client wants. |
#8
| |||
| |||
|
|
"donpro" <donpro-2003 (AT) rogers (DOT) com> wrote in message news:171626c5-aaf1-4c88-ad7f-a248b4535d96 (AT) c1g2000yqg (DOT) googlegroups.com... Please look at: https://testbed.odysseyshipping.com See the large graphic? It's contained within a DIV. I don't want to set fixed width/height using HTML. I'd rather that the image just expand or contract (in this case, the latter) to fill the DIV without creating a horizontal scroll bar. Can this be done with CSS or do I have to go to JavaScript? img width='100%' ... but why, that will distort the image. |
#9
| |||
| |||
|
|
On Dec 10, 6:50 pm, "rf" <r... (AT) invalid (DOT) com> wrote: "donpro" <donpro-2... (AT) rogers (DOT) com> wrote in message news:171626c5-aaf1-4c88-ad7f-a248b4535d96 (AT) c1g2000yqg (DOT) googlegroups.com... Please look at:https://testbed.odysseyshipping.com See the large graphic? It's contained within a DIV. I don't want to set fixed width/height using HTML. I'd rather that the image just expand or contract (in this case, the latter) to fill the DIV without creating a horizontal scroll bar. Can this be done with CSS or do I have to go to JavaScript? img width='100%' ... but why, that will distort the image. BTW half a megabyte for that image is outrageous. So simple. Works, thanks. Now can someone tell me why there is white space between the image and the footer? An yes, half a megabyte is high but it's what the client wants. |
![]() |
| Thread Tools | |
| Display Modes | |
| |