WXforum.net
May 18, 2013, 07:13:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6609  •  Posts: 178162  •  Topics: 18099
Please welcome TargY, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Sizing the alert box  (Read 602 times)
0 Members and 1 Guest are viewing this topic.
ctccbc
Senior Contributor
****
Offline Offline

Posts: 151

Acurite 01035, Weather Display


WWW
« on: October 03, 2010, 08:08:28 PM »

Quick question regarding the atom-advisory.php script. How do you make the box on the main
page smaller. Everything I seem to change makes only changes stuff on the wxadvisory.php
page. Thanks.
Logged

saratogaWX
Administrator
Forecaster
*****
Offline Offline

Posts: 3729


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #1 on: October 03, 2010, 08:33:39 PM »

Hi Chris,
If you mean the advisory box on http://www.moreheadcityweather.com/wxindex.php

The styling is in the CSS for       <div class="advisoryBox"></div>

You can change it on the wxindex.php page by adding
Code:
<style type="text/css">
.watchBox, .advisoryBox, .warningBox {
  width: 600px;
}
</style>
somewhere before the </head> on the page.

Then only the watches, advisories or warnings would all be sized to 600px .. substitute your desired width for 600 above Smile

Best regards,
Ken
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
ctccbc
Senior Contributor
****
Offline Offline

Posts: 151

Acurite 01035, Weather Display


WWW
« Reply #2 on: October 03, 2010, 08:52:53 PM »

Thanks Ken. I like how your box looks on your front page. What size to you have the height, width and
font size? 
Logged

saratogaWX
Administrator
Forecaster
*****
Offline Offline

Posts: 3729


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #3 on: October 03, 2010, 09:53:36 PM »

I use

width: 608px;
font-family: Verdana, Tahoma, arial, sans-serif;
font-size: 10px;
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.11 seconds with 19 queries.