![]() |
Forum Index : Microcontroller and PC projects : WebMite web page
Author | Message | ||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1997 |
I am sending a web page with weather information to my phone. The code I used was from TBS member Luc HERE The code I am using is <br> <br> <br> <!DOCTYPE html> <head> <title>PAUL'S WEATHER</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <br> <body style="background-color: PowderBlue"> <CENTER><h1 style = "color: red">PAUL'S WEATHER</h1><CENTER> <br> <br> <CENTER><H1>TEMPERATURE...{temp} Deg. <H1><CENTER> <br> <CENTER><H1>HUMIDITY......{hum} % <H1><CENTER> </body> </html> Although I am using H1 for the font the lines come out different sizes, The 'Humidity' is slightly larger. ![]() Originally I used H4 for 'Temperature' and 'Humidity' and although they were the same size they were too small. I tried H3 slightly larger and they were bigger than the Title which is font H1. I read that this font sizing of H1 etc. is no longer used and they use CSS. I know absolutely nothing about HTML. Does anyone know how to size the font properly. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2716 |
This is just a guess, perhaps the temp. line has been shrunk by the browser to make it fit. To test this add more dots to the humid. line and see if it shrinks to match. <CENTER><H1>HUMIDITY................{hum} % <H1><CENTER> |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |