Author Topic: Change Font Size And Position In Ajax Script  (Read 5637 times)

0 Members and 1 Guest are viewing this topic.

Offline Hfcomms

  • Senior Member
  • **
  • Posts: 83
    • Big Bay, Mi - Local Weather
Change Font Size And Position In Ajax Script
« on: January 01, 2008, 01:13:34 PM »
I have been starting to play around with header graphics and have a long way to go.  I have an initial graphic up which is a little taller than the ajax default header size.  I'm wondering how to shift the temperature display in the header down and perhaps a way to change the size of the typefont.  Just looking at the script nothing jumps out at me for how to change any of the defaults in those areas.  Any pointers??  Thanks!!  Oh, and Happy New Year!!

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Change Font Size And Position In Ajax Script
« Reply #1 on: January 01, 2008, 03:04:43 PM »
I'm a bit confused about which temperature display you're referring to, but I think you mean the big temperature display at the right side of the header on each page.  If that's correct, the styling for that is controlled in the CSS (weather-screen.css) as
Code: [Select]
.headerTemp {
  font-size: 36px;
  font-weight: bold;
  position: absolute;
  right: .5ex;
  top: 0.18em;
}

The AJAX update process will only change the contents (i.e. the temperature), and not the formatting which is controlled by the CSS above.

Hope this helps...
Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline WeatherBeacon

  • Chief
  • Forecaster
  • *****
  • Posts: 1369
    • http://www.wxbeacon.com
Re: Change Font Size And Position In Ajax Script
« Reply #2 on: January 01, 2008, 03:49:58 PM »

Regarding the font itself, you may also simply use standard html to change the font size, color, face, etc., of any ajax item. For example, you may do something like:

   <b><font face="Arial" size="5"><span class="ajax" id="ajaxtemp">^vxv007^^uni007^</span></font></b>

Regards,

Kevin...
Mae govannen!
Kevin  (Member AMS) http://www.wxbeacon.com               Genesee County, Michigan
Hardware:  Davis Vantage Pro Wireless, Midland WR-300
Software: VWS 14.01p43, WeatherFlash, & GRLevel3

Offline Hfcomms

  • Senior Member
  • **
  • Posts: 83
    • Big Bay, Mi - Local Weather
Re: Change Font Size And Position In Ajax Script
« Reply #3 on: January 01, 2008, 03:52:20 PM »
Thanks mucho Ken!!

Yes, that is what I meant.  I didn't know where to look for the coding on it.  I looked at the ajax script and the ajax interface on the index page and couldn't see where to make any changes as far as text.  Didn't think to look at the css file.  This has been a real learning experience for me and I'm making progress.  Looking forward to the updated templates that are coming in Jan.  It keeps getting better and better.

Thanks again,
Doug

 

anything