$Body"; same for line 1016 showflat...."> $Body"; same for line 1016 showflat....">
Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 162
M
enthusiast
enthusiast
M Offline
Joined: Jun 2006
Posts: 162
showflat.inc.php, line 1020, this should be a div and no span:
$postrow[$i]['Body'] = "<span id=\"body$i\">$Body</span>";

same for line 1016


showflat.tpl, line 154 + 168:
<span class="post_inner">
...
</span>

same for line 160

same for line 277 + 279

Last edited by Rick; 05/31/2007 3:51 PM.

##eek##
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Is there any particular reason this needs to be changed? Is this not working in a particular browser? The only big difference between a div and a span tag is that the div tag includes a paragraph break because it's a logical division in the document. We don't necessarily need divs, since we just need to apply the style or assign an id.

Joined: Jun 2006
Posts: 196
I
enthusiast
enthusiast
I Offline
Joined: Jun 2006
Posts: 196
It's a validation thing. Posts like include divs (like in quote tags). Divs are not allowed to be contained in spans, since spans are inline and divs are block level.

The same goes for his other post about this. Tables are block level (well, they aren't but we'll say they are to avoid a long discussion).

Spans are really only meant to contain text and other inline elements

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ahh, makes sense. Thanks for the explanation.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
And this is why he's a 98 :x


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
2 members (Nightcrawler, Ruben), 446 guests, and 194 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)