Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-04-2014, 01:06 PM   #16
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Quote:
Originally Posted by Jellby View Post
And that's actually the point of "visibility:hidden", that's what it should do. "display:hidden" is simply a mistake.
What? I think you got it wrong...
display:hidden is incorrect.

What mrmikel tried to say, I think, is that when you use display:none the actual (paragraph for that matter) will not display at all as if it was not there, though if you use visibility:hidden the paragraph will simply be invisible but the space it takes will stay as it is, meaning, it will look like an empty paragraph.
odedta is offline   Reply With Quote
Old 09-04-2014, 01:42 PM   #17
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I agree. From your (both of you) comments, it could be understood that the fact that some element takes up space when hidden may be a side effect, a bug, or a particularity of some renderer. I just wanted to point out that that is exactly what "visibility:hidden" is supposed to do and the reason why one may want to use it in some specific cases, it's not a side effect.

And yes, "display:hidden" is wrong, or a mistake, as I said, for "display:none" or "visibility:hidden". Which is the right one, depends on what one wants. (And in ePub 2, "visibility" is not a required property.)
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional CSS for ADE readers democrite ePub 4 09-23-2013 09:10 PM
ADE breaks CSS --> CSS Validation: Parse Error / Value Error dasboeh ePub 4 12-10-2012 03:25 AM
CSS troubles in ADE xmlgirl ePub 7 03-26-2012 12:50 PM
ADE mit userstyle css mtravellerh PocketBook 0 05-21-2010 03:40 PM
epub, ADE and CSS puzzle pdurrant ePub 3 09-03-2009 01:07 PM


All times are GMT -4. The time now is 12:02 AM.


MobileRead.com is a privately owned, operated and funded community.