Re: SPv3 formatting problems
Posted: 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.
Climbing, hiking, mountaineering forum
http://www.summitpost.org/phpBB3/
https://www.summitpost.org/phpBB3/spv3-formatting-problems-t64170-45.html
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.
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.
<table class='thumb' align='center'><tr><td> Code...</td></tr></table>
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.
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.
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
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
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.
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.
Josh Lewis wrote:@ Rob: Thank you for bringing up the issue of align="center" being deprecated. 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.
<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/>
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/>