html - scalable image and div with float -


Do anyone know that to adjust the code given below, my border div with the image with the image How to make a scale? At present it is only a little scales and then it will not get any smaller. When this scaling is stopped then it is still too big I would love it so that people can view it on any phone, without seeing the entire picture without being cut off. any idea?

  & lt; Body & gt; & Lt; Div align = "center" style = "width: 100%;" & Gt; & Lt; Div style = "float: left; boundary: 1px solid # 999; margin-left: 40px; display: inline-block; width: 100%; max-width: 308px;" & Gt; & Lt; H2 & gt; Big basket & lt; / H2 & gt; & Lt; Img src = "http://www.detroitdrivingrange.com/assets/images/large-basket-golf-bolls.png" style = "max-width: 100%;" /> & Lt; H1 & gt; Only $ 7.00 & lt; / H1> & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Body & gt;    

Your problem with maximum is that property is only

  Width: 100%;   

On all the things you want to scale:

Working examples:

p. s. To view it on my phone in a particular way, which is different on the normal computer screen, I advised to learn about media queries. Although this fix was the way your image was asking for you, you should

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -