Go Back   Pligg CMS Forum > Other > Off-topic

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-12-2007, 04:03 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
align="absmiddle" or somethig else?

Hi All,

I hope every one will be using some sort of images for their Pligg sites - Now I tried to validate the pages for XHTML translational only to find that the story summary pages images (discuss, tell a friend and submit link) they all seem to use align="absmiddle" for vertical alignment - but this absmiddle is not a valid value in XHTML - is there any other solution.

I tried align="middle" = this appears in different manner in different browsers - but not centered as I needed.
Reply With Quote
  #2 (permalink)  
Old 04-12-2007, 04:50 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
This one prevents me from making my site XHTML valid (yes I am 1 step before it)
Reply With Quote
  #3 (permalink)  
Old 04-12-2007, 07:46 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 575
Thanks: 14
Thanked 126 Times in 61 Posts
Oh yeh, I had the same problem. Absmiddle prevented the pages from being xhtml compliant. I actually didn't try another method, as like you said, only absmiddle kept the icons looking "right". The annoying this is that it is recgonised by virtually all browsers, and can be quite useful. It aligns the middle of a line (of text for example) with the middle of an image.

I think the only alternative would be to create a new css class that did something similar, but I haven't attempted it yet.
__________________

Reply With Quote
  #4 (permalink)  
Old 04-12-2007, 09:03 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
surprisingly the same effect applied from CSS makes both CSS and XHTML valid - I think - that is the only viable solution to this situation.
Reply With Quote
  #5 (permalink)  
Old 04-12-2007, 12:53 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 575
Thanks: 14
Thanked 126 Times in 61 Posts
I completely forgot, I did do a css equivalent! I noticed the comments icon had already been done using css, so I just copied it for the rest:

Code:
.news-details .bury {background:url(../images/bury.png) no-repeat;padding-left:18px}
.news-details .comments {background:url(../images/comment.png) no-repeat;padding-left:18px}
.news-details .comments2 {background:url(../images/comment_yellow.gif) no-repeat;padding-left:18px}
.news-details .bookmarks {background:url(../images/add.gif) no-repeat;padding-left:18px}
.news-details .save {background:url(../images/save_link.png) no-repeat;padding-left:18px}
.news-details .save2 {background:url(../images/remove_link.png) no-repeat;padding-left:18px}
.news-details .recommend {background:url(../images/email.png) no-repeat;padding-left:18px}
I was wondering why my page was xhtml valid, when I thought it couldn't be.
__________________

Reply With Quote
  #6 (permalink)  
Old 04-12-2007, 01:26 PM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
Thanks - that seems to be removed in the latest SVN code I guess - will confirm and if not present - will use them.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Search Engine Friendly URLs by vBSEO 3.2.0