Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Help with centering
Moderator: daj
-
sbuckler
- Posts: 35
- Joined: Thu 27 Dec 2012 4:10 pm
- Weather Station: Davis vantage Pro2 Plus
- Operating System: Win 7
- Location: Cape Cod, MA USA
- Contact:
Help with centering
Can someone help me with my new webcam page? I am trying to learn html and cannot figure out why my station name, location bar and navigation bar do not stay centered when using fullscreen. Driving me nuts! Did I not close something properly?
http://harwichweather.com/webcam.htm
Thanks,
Stan
http://harwichweather.com/webcam.htm
Thanks,
Stan
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Help with centering
You've got an unclosed <img> element, and an unclosed <a> element, but I can't say whether that is actually affecting your centering.
<img src="http://3cares.dyndns.org:8080/video4.mjpg" name="CameraImage" width="1024" height="634"
<p><a href="http://www.wunderground.com/webcams/sbu ... o.html"</p>
<img src="http://3cares.dyndns.org:8080/video4.mjpg" name="CameraImage" width="1024" height="634"
<p><a href="http://www.wunderground.com/webcams/sbu ... o.html"</p>
Steve
-
sbuckler
- Posts: 35
- Joined: Thu 27 Dec 2012 4:10 pm
- Weather Station: Davis vantage Pro2 Plus
- Operating System: Win 7
- Location: Cape Cod, MA USA
- Contact:
Re: Help with centering
Thanks Steve. Closed those elements but that was not the cause of the centering problem. What better way to learn than to keep digging......so off I go.
Stan
Stan
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Help with centering
This is incorrect:
<img src="http://3cares.dyndns.org:8080/video4.mjpg" name="CameraImage" width="1024" height="634"</img>
It needs to be
<img src="http://3cares.dyndns.org:8080/video4.mjpg" name="CameraImage" width="1024" height="634">
But I suspect that still won't fix your centering.
<img src="http://3cares.dyndns.org:8080/video4.mjpg" name="CameraImage" width="1024" height="634"</img>
It needs to be
<img src="http://3cares.dyndns.org:8080/video4.mjpg" name="CameraImage" width="1024" height="634">
But I suspect that still won't fix your centering.
Steve
-
sbuckler
- Posts: 35
- Joined: Thu 27 Dec 2012 4:10 pm
- Weather Station: Davis vantage Pro2 Plus
- Operating System: Win 7
- Location: Cape Cod, MA USA
- Contact:
Re: Help with centering
Thanks. You are also correct about the centering. I'll keep trying to figure it out, but it's not a big deal.
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Help with centering
Your tag
<a href="http://www.wunderground.com/webcams/sbu ... video.html"
is not formatted or terminated properly.
The Title is centred - but left justified with the centred <h1>
You menu <table> tag is missing some parameters, it should be:
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<a href="http://www.wunderground.com/webcams/sbu ... video.html"
is not formatted or terminated properly.
The Title is centred - but left justified with the centred <h1>
You menu <table> tag is missing some parameters, it should be:
<table width="100%" border="0" cellpadding="0" cellspacing="0">
-
sfws
- Posts: 1183
- Joined: Fri 27 Jul 2012 11:29 am
- Weather Station: Chas O, Maplin N96FY, N25FR
- Operating System: rPi 3B+ with Buster (full)
Re: Help with centering
I think with the declarationsteve wrote:It needs to be
<img src="http://3cares.dyndns.org:8080/video4.mjpg" name="CameraImage" width="1024" height="634">
But I suspect that still won't fix your centering.
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><img src="http://3cares.dyndns.org:8080/video4.mjpg" name="CameraImage" width="1024" height="634" />
(the space and slash are I believe required by XHTML).
Someone who actually uses XHTML will no doubt confirm this, I use HTML5 which accepts either format.
However, my quick guess is the CSS:
Code: Select all
style="text-align: center;"Incidentally, I'm using my Mum's Firefox and its Tools - 'web developer' - 'style editor' to experiment with your page.
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Help with centering
After a quick look-see the only page I saw behaving itself is the gauges page. Have you been modifying weatherstyles.css ?
The main problem with your streaming cam page is the physical width of the image which will 'break' any css boundaries in nearly every PC monitor I know !
The main problem with your streaming cam page is the physical width of the image which will 'break' any css boundaries in nearly every PC monitor I know !
......................Imagine, what you will KNOW tomorrow !
-
sbuckler
- Posts: 35
- Joined: Thu 27 Dec 2012 4:10 pm
- Weather Station: Davis vantage Pro2 Plus
- Operating System: Win 7
- Location: Cape Cod, MA USA
- Contact:
Re: Help with centering
Thanks for the replies. I fixed the /> and compared the original CSS to the one I am using. All I did was modify the colors and background image. My background is 1280x1024 and I changed the background position from:
background-position: left bottom; to:
background-position: center;
I also changed my streaming image size to a manageable 640 x 480. My camera feed is a native 1280x800 so I tried to use a smaller size while maintaining the aspect ratio.
I see that only my gauges page is functioning properly now that you point it out.
Could my background be causing an issue? Is there a minimum/maximum size allowed?
This is a lot to learn for a 56 year old carpenter and I appreciate all of your help.
Stan
background-position: left bottom; to:
background-position: center;
I also changed my streaming image size to a manageable 640 x 480. My camera feed is a native 1280x800 so I tried to use a smaller size while maintaining the aspect ratio.
I see that only my gauges page is functioning properly now that you point it out.
Could my background be causing an issue? Is there a minimum/maximum size allowed?
This is a lot to learn for a 56 year old carpenter and I appreciate all of your help.
Stan
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Help with centering
Stan, may I recommend that you take some time off from modifying the templates of your site and you look at the tutorials available at the W3Schools site, such as the HTML Tutorial and the CSS Tutorial - going through the tutorials will, at the very least, give you a basic idea on how to work with HTML and CSS.
Oh, by the way 56 is not that old - I started learning HTML at the age 50 (about 15 years ago) and PHP about 6-7 years ago...
Oh, by the way 56 is not that old - I started learning HTML at the age 50 (about 15 years ago) and PHP about 6-7 years ago...
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Help with centering
Stan, if you have any questions while reading the tutorials, just send me a private message with your questions and I will try my best to explain in an easy to understand language... 
-
sbuckler
- Posts: 35
- Joined: Thu 27 Dec 2012 4:10 pm
- Weather Station: Davis vantage Pro2 Plus
- Operating System: Win 7
- Location: Cape Cod, MA USA
- Contact:
Re: Help with centering
Thanks Ray, I followed your advice and used the tutorials. Lots of head scratching but I have a little better understanding now. Got my webcam page working as I wanted now.
http://harwichweather.com/webcam.htm
Stan
http://harwichweather.com/webcam.htm
Stan