SPv3 formatting problems

Suggestions and comments about SummitPost's features, policies, and procedures. Post bugs here.
User Avatar
chugach mtn boy

 
Posts: 942
Joined: Sat Jun 10, 2006 7:54 pm
Thanked: 224 times in 129 posts

Re: SPv3 formatting problems

by chugach mtn boy » Sat Jan 26, 2013 10:26 pm

Montana Matt wrote:OK, was finally able to track down the issue with sections that only have HTML in them not displaying. Should be fixed now.


Fixed on my pages. Thanks.

User Avatar
boyblue

 
Posts: 191
Joined: Sat Feb 15, 2003 9:30 am
Thanked: 111 times in 66 posts

Re: SPv3 formatting problems

by boyblue » Sun Jan 27, 2013 12:31 am

rgg wrote:I fiddled some more, and got it working with a vertical scroll bar too! Here is the code:

Code: Select all
<noformat>
<center>
<table class='thumb'>
  <tr>
   <td style="text-align:center;">
    <div style="width:770px;height:470px;overflow:auto;">
     <a href=/view_object.php?object_id=832086>
      <img src="http://www.summitpost.org/images/original/832086.jpg">
     </a>
    </div>
    <br>180 Degree Panorama From Summit
   </td>
  </tr>
</table>
</center>
</noformat>


And here is the preview.


Thanks, Rob! I just implemented your code and it works perfectly. I see it even fixed the visibility issue of the caption. :D
-Gordon

User Avatar
Josh Lewis

 
Posts: 3412
Joined: Thu Jan 06, 2011 11:12 pm
Thanked: 1108 times in 677 posts

Re: SPv3 formatting problems

by Josh Lewis » Sun Jan 27, 2013 1:17 am

Edit: Not quite sure what to do about the situation I mention below, align="center" is deprecated as well. :x :x

Folks, just a heads up, I see all this panorama code going around. I strongly suggest not using the center tag but instead including in the table something like this:

Code: Select all
<table class='thumb' align='center'><tr><td>  Code...</td></tr></table>


The main difference was I added a align='center'. This is because it is deprecated by the W3C. The reasoning for this is because HTML tags are intended to be used for display and not formatting. So as a result, they dropped support for it. For now it doesn't really affect us, but for the future we should have good practice now. Use the align attribute! Plus, center tag is actually more characters. :wink:

For those who are curious, <div align="center"></div> does the same thing as <center><div></div></center>. There's a phrase out there that less is more. 8)
Last edited by Josh Lewis on Sun Jan 27, 2013 7:07 pm, edited 1 time in total.

The following user would like to thank Josh Lewis for this post
boyblue

User Avatar
mrchad9

 
Posts: 4545
Joined: Thu Jul 02, 2009 12:01 am
Thanked: 1338 times in 911 posts

Re: SPv3 formatting problems

by mrchad9 » Sun Jan 27, 2013 1:33 am

I am impressed by the folks who can understand every post in this thread.

Now where is that copy of Euler's formula I had...

User Avatar
Josh Lewis

 
Posts: 3412
Joined: Thu Jan 06, 2011 11:12 pm
Thanked: 1108 times in 677 posts

Re: SPv3 formatting problems

by Josh Lewis » Sun Jan 27, 2013 3:04 am

Please report your bugs to this page:
http://www.summitpost.org/known-issues- ... -v3/835415

This will help organize the issues and help separate solved from unsolved.

User Avatar
Gangolf Haub
Forum Moderator
 
Posts: 9436
Joined: Wed Nov 12, 2003 4:28 pm
Thanked: 1046 times in 753 posts

Re: SPv3 formatting problems

by Gangolf Haub » Sun Jan 27, 2013 9:05 am

Small issue since I don't think anyboy else ever used this: the annotation in panoramas is off. I'm afraid I should never have used it but it seemed such agood idea at the time ...

Example:
http://www.summitpost.org/gro-er-gabler ... nde/251660

User Avatar
rgg
Forum Moderator
 
Posts: 859
Joined: Sat Oct 02, 2010 7:15 pm
Thanked: 192 times in 154 posts

Re: SPv3 formatting problems

by rgg » Sun Jan 27, 2013 11:15 am

Josh Lewis wrote:Folks, just a heads up, I see all this panorama code going around. I strongly suggest not using the center tag but instead including in the table something like this:

Code: Select all
<table class='thumb' align='center'><tr><td>  Code...</td></tr></table>


The main difference was I added a align='center'. This is because it is deprecated by the W3C. The reasoning for this is because HTML tags are intended to be used for display and not formatting. So as a result, they dropped support for it. For now it doesn't really affect us, but for the future we should have good practice now. Use the align attribute! Plus, center tag is actually more characters. :wink:

For those who are curious, <div align="center"></div> does the same thing as <center><div></div></center>. There's a phrase out there that less is more. 8)



Hi Josh,

Like the <center> tag, the align attribute itself is also deprecated as of HTML 4.01 and not officially supported in HTML 5. I tried getting stuff centered without using either of them, but found it rather tricky. I tried things like <div style="text-align:center;">...</div> around the whole thing (that is, instead of the <center>...</center>), but that didn't quite do what I wanted. I guess I don't complete understand CSS and HTML, and learning it isn't made any easier by the fact that browsers don't completely follow the rules...

However, even though deprecated, there must be such an enormous number of HTML pages around using center as a tag or attribute that I can't believe that any serious browser will actually stop supporting it anytime soon. Therefore I'll keep using both for the time being.

Cheers, Rob

The following user would like to thank rgg for this post
Josh Lewis

User Avatar
rgg
Forum Moderator
 
Posts: 859
Joined: Sat Oct 02, 2010 7:15 pm
Thanked: 192 times in 154 posts

Re: SPv3 formatting problems

by rgg » Sun Jan 27, 2013 11:28 am

Gangolf Haub wrote:Small issue since I don't think anyboy else ever used this: the annotation in panoramas is off. I'm afraid I should never have used it but it seemed such agood idea at the time ...

Example:
http://www.summitpost.org/gro-er-gabler ... nde/251660


If, by annotation, you mean the caption, then yes, some of us noticed. In this post above I posted my latest version of improved code that fixes it for sliding panorama's. I still have to go through a bunch of my pages to get them right again, and I might still improve my latest improvement (for example by not using the deprecated center tag and align attribute).

Cheers, Rob

User Avatar
Gangolf Haub
Forum Moderator
 
Posts: 9436
Joined: Wed Nov 12, 2003 4:28 pm
Thanked: 1046 times in 753 posts

Re: SPv3 formatting problems

by Gangolf Haub » Sun Jan 27, 2013 11:56 am

rgg wrote:
Gangolf Haub wrote:Small issue since I don't think anyboy else ever used this: the annotation in panoramas is off. I'm afraid I should never have used it but it seemed such agood idea at the time ...

Example:
http://www.summitpost.org/gro-er-gabler ... nde/251660


If, by annotation, you mean the caption, then yes, some of us noticed. In this post above I posted my latest version of improved code that fixes it for sliding panorama's. I still have to go through a bunch of my pages to get them right again, and I might still improve my latest improvement (for example by not using the deprecated center tag and align attribute).

Cheers, Rob

No, Rob, I mean the labels for the mountains. It was a hell of a job to get the coordinates right in the first place, which is why I don't use this feature anymore. Also, they have a history of looking slightly different on different browsers. I just realized that the problem does only occur on firefox, not on IE, which is why you probably didn't even see it.

As I said - minor problem.

The following user would like to thank Gangolf Haub for this post
rgg

User Avatar
Dow Williams

 
Posts: 2345
Joined: Mon Jul 12, 2004 1:59 pm
Thanked: 219 times in 101 posts

Re: SPv3 formatting problems

by Dow Williams » Sun Jan 27, 2013 3:48 pm

Montana Matt wrote:The content submission interface wasn't ever really all that great. Going forward, we're going to move to a more modern system. I'm looking at some WYSIWYG (What You See IS What You Get) interfaces to make the submission process easier.


I was over at Dixie University's computer department discussing my ideas for a broader use of my beta, etc....(used to be Dixie College until Friday)...Keep in mind this use to be a jr college until this year...but right away they showed me "image tools" (I requested KISS terminology whilst speaking in front of me!) that do exactly that....and I was under the impression you surely were going to make that significant change....that is what climbers, kayakers, mountain bikers, alpinists, bc skiers, etc. need Matt. All along, this site has been way too complicated for new contributors...even someone like me got so use to writing pages that I could not see how important a change like that should have been until now....but I have always received feedback from users of my beta that contributing to the site was too difficult and time consuming....

To make a half step to cost me 40 hrs of work to revise every page, but did not eliminate a step in the contribution process, in fact added one in terms of guessing how images align, was a bit short sighted you have to admit. I advise you think all these items through before making changes in the future. Either go all the way to your final objective with every minute change or don't make it. I am too much of a perfectionist not to correct all my maligned pages...can't stand the beta looking like crap for x amount of time...but my trust of these kind of changes without any input from major contributors, has been challenged.

I commend all three of you for your effort. Chad and Josh not being paid a dime, that is truly "giving" first and foremost (same as putting your money where your mouth is sort of thing), so I can't complain about being forced to sit in front of my computer longer than I want. These two, no matter their intent/success, contributed way more hours than that I am sure....and I know how sincere you are about wanting to make positive changes.

If I can partner with Dixie University and give back to my community I will move on with Gearbeans.com as previously stated. I really think my vision for how to attract new members and open up the site, in comparison to what is important to the majority of your "current active members" are at odds (voting, power points, both meaningless to me).

Thanks for you time and open discussion these past two weeks. I wish you luck with the revisions. They are guaranteed to be some improvement over the stagnation that had been present. If you want to communicate with me further about any glitches in my stuff, you, Chad or Josh, do it via email....I will be checking out of the forums again. I just don't have the time to climb, fix every beta page and keep track of communications here. I would appreciate a heads up (email) on any further changes that will drastically affect my beta presentation so I can arrange for someone to go make the necessary changes to keep it presentable until I get it all moved.

Cheers

User Avatar
rgg
Forum Moderator
 
Posts: 859
Joined: Sat Oct 02, 2010 7:15 pm
Thanked: 192 times in 154 posts

Re: SPv3 formatting problems

by rgg » Sun Jan 27, 2013 4:52 pm

Gangolf Haub wrote:
rgg wrote:
Gangolf Haub wrote:Small issue since I don't think anyboy else ever used this: the annotation in panoramas is off. I'm afraid I should never have used it but it seemed such agood idea at the time ...

Example:
http://www.summitpost.org/gro-er-gabler ... nde/251660


If, by annotation, you mean the caption, then yes, some of us noticed. In this post above I posted my latest version of improved code that fixes it for sliding panorama's. I still have to go through a bunch of my pages to get them right again, and I might still improve my latest improvement (for example by not using the deprecated center tag and align attribute).

Cheers, Rob

No, Rob, I mean the labels for the mountains. It was a hell of a job to get the coordinates right in the first place, which is why I don't use this feature anymore. Also, they have a history of looking slightly different on different browsers. I just realized that the problem does only occur on firefox, not on IE, which is why you probably didn't even see it.

As I said - minor problem.


Mostly I use Google Chrome, but I frequently check if things look ok in Firefox and IE. I get what you mean with labels now though, and, for the record they still work in Google Chrome as well..

Cheers, Rob

User Avatar
Josh Lewis

 
Posts: 3412
Joined: Thu Jan 06, 2011 11:12 pm
Thanked: 1108 times in 677 posts

Re: SPv3 formatting problems

by Josh Lewis » Sun Jan 27, 2013 7:56 pm

@ Rob: Thank you for bringing up the issue of align="center" being deprecated. :x I'm actually a little mad about that. I almost want to write to the W3C myself except I know that nothing would change from that. :? So I started a thread about this in Stack Overflow. I suppose it wouldn't be that bad, but we could have a class that adjusts the alignment of objects. So I'll do some more learning. If the alignment attribute is indeed going away some day (in the distant future) than I can get to work with creating a simple alternative that will both work and be easy for the average poster.

@ Dow Williams: To be honest, I actually didn't want SP V3 launched so soon. I felt that the coding wasn't quite stable, but Matt did have to do the server swap considering that 2 servers were being used (the SP one and the test server). A sub directly of SP could have been made for testing, but that would not have given Matt the opportunity to test out the configurations and to have SP compatible with the new server (from what I understand he had to do a lot of work to make this work). The doctype was indeed needed. I knew that it might break pages with not as well formed HTML. But already we were seeing the bad effects of no doctype declared. Internet Explorer was not supporting box-shadow, round corners, and other formatting. In the web world, especially with SP at it's "early age" we want the future to be as solid as possible. Even if that creates some inconveniences in the present. There is nothing we can do to prevent bad HTML from not working and securing the future of SP.

User Avatar
rgg
Forum Moderator
 
Posts: 859
Joined: Sat Oct 02, 2010 7:15 pm
Thanked: 192 times in 154 posts

Re: SPv3 formatting problems

by rgg » Mon Jan 28, 2013 7:12 am

Josh Lewis wrote:@ Rob: Thank you for bringing up the issue of align="center" being deprecated. :x I'm actually a little mad about that. I almost want to write to the W3C myself except I know that nothing would change from that. :? So I started a thread about this in Stack Overflow. I suppose it wouldn't be that bad, but we could have a class that adjusts the alignment of objects. So I'll do some more learning. If the alignment attribute is indeed going away some day (in the distant future) than I can get to work with creating a simple alternative that will both work and be easy for the average poster.


One of the main problems I typically face when trying to follow the HTML5 (or even HTML4.01) standard strictly is that I want the code to work in all major browsers, and not just in their latest versions but preferably in all fairly recent versions too. That makes HTML rather challenging, and as far as centering goes, I'm still looking for the holy grail. But at least my HTML skills are improving from all this fiddling.

User Avatar
Gangolf Haub
Forum Moderator
 
Posts: 9436
Joined: Wed Nov 12, 2003 4:28 pm
Thanked: 1046 times in 753 posts

Re: SPv3 formatting problems

by Gangolf Haub » Mon Jan 28, 2013 8:01 pm

Suddenly centered pics aren't centered anymore. This morning (CET) they still were. Since I realize the grey frames are gone I suppose someone's working on the CSS. Code (Dolomites page, end of overview).

Don't see why looking at the code:
Code: Select all
<div align='center' class='thumb_new' style='width: 506px;'><a href='/a-maze-of-towers/560989'><img alt='A maze of towers' height='144' width='500' src='/images/medium/560989.jpg'></img></a><br/>In the Cadini di Misurina</div><br/>

User Avatar
Bubba Suess

 
Posts: 726
Joined: Tue Oct 04, 2005 9:15 pm
Thanked: 183 times in 105 posts

Re: SPv3 formatting problems

by Bubba Suess » Mon Jan 28, 2013 8:20 pm

Gangolf Haub wrote:Suddenly centered pics aren't centered anymore. This morning (CET) they still were. Since I realize the grey frames are gone I suppose someone's working on the CSS. Code (Dolomites page, end of overview).

Don't see why looking at the code:
Code: Select all
<div align='center' class='thumb_new' style='width: 506px;'><a href='/a-maze-of-towers/560989'><img alt='A maze of towers' height='144' width='500' src='/images/medium/560989.jpg'></img></a><br/>In the Cadini di Misurina</div><br/>

I just noticed this too. All the stuff that is aligned to the right is now on the left, sans gray boxes:
Trinity Alps

PreviousNext

Return to Site Feedback

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests