WXforum.net
May 20, 2013, 05:49:39 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6610  •  Posts: 178404  •  Topics: 18108
Please welcome jayhawker, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: This Year rain amount layout  (Read 209 times)
0 Members and 1 Guest are viewing this topic.
William Grimsley
Weather isn't just a hobby, it's a passion.
Forecaster
*****
Offline Offline

Posts: 1103


Great minds, work alike.


WWW
« on: August 15, 2012, 01:36:54 PM »

Hi there,

Is there any way I cant change the layout of this year and the rain rate column on my home page. When my rain rate goes above 10.0mm it shows the 10.00 then the mm below it! Same with this year if it goes above 10.00 or 100.00 it goes above.

Thanks

Will

P.S. This is just quite annoying.
Logged

William Grimsley - Newton Poppleford Weather
http://www.newton-poppleford-weather.co.uk
Davis Vantage Vue - Cumulus v1.9.4-b1076

DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Online Online

Posts: 2715


SCCA EM #156


WWW
« Reply #1 on: August 15, 2012, 01:50:48 PM »

The table cell for that column of data is only 59px wide, which is obviously not wide enough to display all of the characters without wrapping. Since you can't make the table wider, the only thing you can do is reduce the font size by maybe 1 px. It appears the font size is set for 96% for that area, you might be able to reduce that to 94% and that might work.
Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

saratogaWX
Administrator
Forecaster
*****
Online Online

Posts: 3729


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #2 on: August 15, 2012, 01:54:28 PM »

It's all the browser trying to squeeze in text in the areas allotted for it to use.

Try changing your CSS to use a slightly smaller font size by changing
Code:
.ajaxDashboard {
    font-size: 96%;
        font-family: Verdana, Arial, Helvetica, sans-serif;
}
to

Code:
.ajaxDashboard {
    font-size: 95%;
        font-family: Verdana, Arial, Helvetica, sans-serif;
}
and see if that accomplishes what you want without distorting the output too much.

Layout annoyances are best dealt with by tweaking the CSS.  Be aware that finely-tweaked CSS may cause differing appearances on other browsers with other default settings for character size from normal.  I find it best to let the browser decide if it needs to wrap the text to make the display maintain it's content and not to get worked up over a minor alignment issue... but that's just me...

Best regards,
Ken

BTW.. try your CSS tweaks by using Firefox Web Developer plugin .. you can make changes and see what it looks like immediately .  Much faster than editing the CSS and uploading it to your site over and over again.
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.099 seconds with 18 queries.