navyfalcon Posted April 25, 2022 Share Posted April 25, 2022 Subject: Problems with images, width and height. Digits work but % does not. I want the webpage to display correctly with different screen sizes therefore %. How can I do this. The partial code below demonstrates this. Thank You falcon [code] 1.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2. <html> 3. <head> 4. <title>Code Forum - system information and diagnostics utility</title> 5. <meta name="description" content="A powerful free HTML editor. Although this Web page software is completely free, it offers a solid collection of tools to help webmasters build Web sites with speed, ease, and convenience."> 6. </head> 7. <body bgcolor="#faebd7"> 8.<dl> 9. <dt> <b>Screenshots of Code Forum</b> 10. <dt></dt> 11. <dt><b></b><table width="100%" border="0" cellspacing="2" cellpadding="0"> 12. <tr> 13. <td width="50%"> 14. <img src="../Images/Code Forum HTML & CSS.jpg" width="90%" height="90%" align="LEFT"></td> 15. <td width="50%"> 16. <img src="../Images/Code Forum Web.jpg" width="90%" height="90%" align="RIGHT"></td> 17. </tr> [/code] computer= HP Compaq 6005 Pro MiniTower processor= AMD Phenom II X4 processor speed= 3.2GHz chipset= AMD 785G system= Win 7 Pro Note: OK the system is old, I mean ancient, so is the software. Link to comment Share on other sites More sharing options...
dsonesuk Posted April 26, 2022 Share Posted April 26, 2022 Usually you have to identify if image is landscape or portrait, landscape usually use width: 100%; height: auto;, portrait height: 100%; width: auto; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now