Author Topic: General Coding question  (Read 622 times)

0 Members and 1 Guest are viewing this topic.

Offline Gregal

  • Member
  • *
  • Posts: 13
    • Hilltop Inspiration
General Coding question
« on: January 26, 2015, 06:50:57 AM »
I have not updated my site in sometime and did not have or did not make the time to update things so as part of my new years resolution I have worked on my station, had a few 1-wires that were not working and to update my website.

I have added the Global Weather Network map www.allshouse.net/wxglobal.php to my website and it is working well.  Thanks Ken you always do such a great job on these.  As you can see on my website all of the global-map-inc.php information is left aligned on the page.  I have a personal preference to center everything.  How is that best accomplished?  Do I need to go into the global-map-inc.php and tell it to center everything or can I just tell add code to the wxglobal.php page?

Sorry for what may seem as a simple question to some but for being a self taught coder and not using it for some time I am a tad bit rusty.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: General Coding question
« Reply #1 on: January 26, 2015, 02:24:33 PM »
You can try changing wxglobal.php styling to put a bit of padding left/right into the mix.. that will move it more to the middle.

Change
Code: [Select]
<div id="main-copy"> to something like
Code: [Select]
<div style="padding-left: 20%; padding-right: 20%;" id="main-copy">
Tweak the percentages as you like.  This will, however, screw up the presentation on the narrow-aspect template, so only use this mod if you have disabled wide/narrow screen select on your site.

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 Gregal

  • Member
  • *
  • Posts: 13
    • Hilltop Inspiration
Re: General Coding question
« Reply #2 on: January 26, 2015, 02:46:37 PM »
Thanks Ken, I only run the wide screen mode.  I will change the code tonight and give it a whirl.

Again Thanks for your help.

 

anything