Centre widget html
- PernicketyPete
- Posts: 55
- Joined: Sun Apr 29, 2012 3:45 pm
- Name: Pete
- Location: Chilthorne Domer, Somerset, UK
- Contact:
Centre widget html
Hi All
How can i get my widget to display in the middle of the page? instead of the default "left" position.
Many Thanks Pete.
How can i get my widget to display in the middle of the page? instead of the default "left" position.
Many Thanks Pete.
Weather data suplied by Chilthorne Weather
Visit http://www.chilthorneweather.co.uk for live weather information from Chilthorne Domer, Somerset.
Visit http://www.chilthorneweather.co.uk for live weather information from Chilthorne Domer, Somerset.
Re: Centre widget html
Hi Pete
Can You tell us more.
Is this for a website etc.
gr.
Herman

Can You tell us more.
Is this for a website etc.
gr.
Herman

(Wheather on an I(phone,pad,pod) or Android, YoWindow what else )
- par
- Posts: 8724
- Joined: Mon Sep 21, 2009 11:56 am
- Name: Pasha
- Location: Saint-Petersburg, Russia
- Contact:
Re: Centre widget html
Hey, Pete!
Can you give a link to your page with YoWindow widget installed?
Can you give a link to your page with YoWindow widget installed?
- PernicketyPete
- Posts: 55
- Joined: Sun Apr 29, 2012 3:45 pm
- Name: Pete
- Location: Chilthorne Domer, Somerset, UK
- Contact:
Re: Centre widget html
Hi Par & Herman
Thanks for getting back to me.
Yes this is for my website. I would like to display my Yowindow widget in the centre of the web page, when the page is first loaded. At the moment my widget loads on the left of the page. I have tried the usual < p align="centre"> in various places in the widget code, but I can't manage to get it to work so that it will load in the centre of the page. How can I do this?
Par, how will the link help to load my widget in the centre of the page?
Thanks Pete.
Thanks for getting back to me.
Yes this is for my website. I would like to display my Yowindow widget in the centre of the web page, when the page is first loaded. At the moment my widget loads on the left of the page. I have tried the usual < p align="centre"> in various places in the widget code, but I can't manage to get it to work so that it will load in the centre of the page. How can I do this?
Par, how will the link help to load my widget in the centre of the page?
Thanks Pete.
Weather data suplied by Chilthorne Weather
Visit http://www.chilthorneweather.co.uk for live weather information from Chilthorne Domer, Somerset.
Visit http://www.chilthorneweather.co.uk for live weather information from Chilthorne Domer, Somerset.
-
- Posts: 1645
- Joined: Wed Nov 18, 2009 9:58 am
- Location: Vienna, Austria
Re: Centre widget html
Hi Pete!
In case it's not a typo try instead of
In case it's not a typo try
Code: Select all
<p align="center">
PernicketyPete wrote:...< p align="centre">
The link to your webpage will allow us to have a look at the html source-code of your page and see what's eventually missing, what's coded not correctly.PernicketyPete wrote:Par, how will the link help to load my widget in the centre of the page?
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
- PernicketyPete
- Posts: 55
- Joined: Sun Apr 29, 2012 3:45 pm
- Name: Pete
- Location: Chilthorne Domer, Somerset, UK
- Contact:
Re: Centre widget html
Hi
Here is the link to my widget http://www.chilthorneweather.co.uk/yowindow_widget.html
Thanks Pete
Here is the link to my widget http://www.chilthorneweather.co.uk/yowindow_widget.html
Thanks Pete
Weather data suplied by Chilthorne Weather
Visit http://www.chilthorneweather.co.uk for live weather information from Chilthorne Domer, Somerset.
Visit http://www.chilthorneweather.co.uk for live weather information from Chilthorne Domer, Somerset.
- par
- Posts: 8724
- Joined: Mon Sep 21, 2009 11:56 am
- Name: Pasha
- Location: Saint-Petersburg, Russia
- Contact:
Re: Centre widget html
Unfortunately <p align="center"> will not work in this case.
You need to wrap widget code inside the following <div> tag
This is a standard approach in CSS.
This article explains why.
http://www.thesitewizard.com/css/center-div-block.shtml
You need to wrap widget code inside the following <div> tag
Code: Select all
<div style="width:440px; margin-left: auto; margin-right: auto;">
</div>
This article explains why.
http://www.thesitewizard.com/css/center-div-block.shtml
-
- Posts: 1645
- Joined: Wed Nov 18, 2009 9:58 am
- Location: Vienna, Austria
Re: Centre widget html
Thanks!par wrote:Unfortunately <p align="center"> will not work in this case.
You need to wrap widget code inside the following <div> tag
This is a standard approach in CSS.Code: Select all
<div style="width:440px; margin-left: auto; margin-right: auto;"> </div>
This article explains why.
http://www.thesitewizard.com/css/center-div-block.shtml

»Man is impressive. In a universe full of untold secrets he has invented boredom.«
Re: Centre widget html
Hi Pete
Here is the code in the zip file
succes
Herman
Here is the code in the zip file
succes
Herman

- Attachments
-
- yowindow_widget.zip
- (1.01 KiB) Downloaded 431 times
(Wheather on an I(phone,pad,pod) or Android, YoWindow what else )
- PernicketyPete
- Posts: 55
- Joined: Sun Apr 29, 2012 3:45 pm
- Name: Pete
- Location: Chilthorne Domer, Somerset, UK
- Contact:
Re: Centre widget html
Thanks Par & Everyone
That's it. I have it sorted.
Many thanks for all your help Pete.
That's it. I have it sorted.
Many thanks for all your help Pete.
Weather data suplied by Chilthorne Weather
Visit http://www.chilthorneweather.co.uk for live weather information from Chilthorne Domer, Somerset.
Visit http://www.chilthorneweather.co.uk for live weather information from Chilthorne Domer, Somerset.