Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:16 18 Sep 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : WebMite web page

Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1997
Posted: 08:24am 10 Sep 2025
Copy link to clipboard 
Print this post

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: Australia
Posts: 2716
Posted: 08:35am 10 Sep 2025
Copy link to clipboard 
Print this post

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>
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025