Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
An RSS Query
Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 10:40 am

Gosh, I updated the Template Tags and Widgets and all my hard work above for styling that took me hours to get done is broken.  Ok now looking at it I see the spListItemTag have been renamed but where's the number at the end coming from?  Random?  I see it's currently 16, how do I know if it will later change and same problem will happen?

 

EDIT: hey after playing with this I made it!  Would not even have asked this question if I was a CSS expert...  finally I find out this:

 

I was previously styling each li with this:

.spRecentPostsWidget li.spListItemTag { ... }

and now this seems to do the same job:

#spRecentPostsTag li { ... }
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 11:55 am

oh crap... that is my bad... screwed up...  I meant to add a new class not overwrite the old...

hope this does not cause you more grief, but will correct it and push out a new version...  it should have not broken anything... but I messed up...

pushing soon...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 12:02 pm

should be available now... sorry for the mess up... embarassed

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 12:04 pm

Looks like both works fine but what would a CSS expert advise me?  Keep the second method or use the 1st one?  Which is prefered?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 12:10 pm

the former is more specific so would highlight the exact li tag...  if for some reason other li tags appeared in the recent posts, the latter is more generic and could end up styling other li tags...

but in this case, its the recent posts, so either is probably fine...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625