Author Topic: Pixel Size  (Read 2315 times)

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Pixel Size
« on: July 26, 2012, 09:43:52 AM »
Hi Jacques,
This must be an "easy question" considering the past many "difficult" ones  :D
Since last night 10:00pm we have severe rainfall. (You'll get is soon in QC I guess. I already had 25mm!!) so I decided to add a line "Rainfall last 24 hours" to my [today] page.
I had to edit the line: <div id="right_h" style="width:750px">
Being on the "conservative" side, I started to change it from 680px to 700px (just + 20px).
It seemed to make no difference......
I finally ended at 750px to fit the page correctly.
I ran into this problem before, so can you give me an estimate of the pixel size? i.e: when I add 1 line, how many pixels do I have to add (i.e 10px ~ 1mm and so on)

Thanks,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Pixel Size
« Reply #1 on: July 26, 2012, 10:16:38 AM »
Hi Jacques,

It does get a little more complicated (confused).........(also see attachments)
1) [today] at 720px: no bottom fit
2) [today] at 740px: bottom fit (but table shifted slightly left towards vertical separator)
3) [yesterday]: normal distance from vertical separator (like all other [month] [year] etc)

Which parameters have to change as well to have [today] table conform all others in regards to vertical seaparator but ALSO fit the bottom??

Thanks

Arthur[attachment=2:1vzdgfbo]Today at 720px.JPG[/attachment:1vzdgfbo][attachment=1:1vzdgfbo]Today at 740px.JPG[/attachment:1vzdgfbo][attachment=0:1vzdgfbo]Today vertical boarder.JPG[/attachment:1vzdgfbo]
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Pixel Size
« Reply #2 on: July 26, 2012, 10:18:23 AM »
HI Jacques,

Forgot to attach the [yesterday] snapshot with correct alignment in regards to vertical separator.

Cheers,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Pixel Size
« Reply #3 on: July 26, 2012, 01:02:46 PM »
Hi Arthur,

I think that you want to change page height to fill all new items,
and parameter that you play with, is width!

In templates, control is like we read, from left to right.
The left side control entire lenght and the "ajustment" it is the
gap (padding) between "Today" image and Cumulus Copyright.

See you image line:
<img src="images/today.gif" alt="" title="" style="padding:0px 0px 240px 30px" />
The 240px is the parameter you have to "play" with!

Regards,
Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Pixel Size
« Reply #4 on: July 26, 2012, 02:31:21 PM »
HI Jacques,

Thanks for the explanation.
Since my text page fitted, I didn't notice the fact the table had shifted to the left.
By writing down the different [today], yesterday] [year] etc, I noticed the consitency in:
<div id="right_h" style="width:680px">
Looks good now.

Cheers,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »