- This topic is empty.
-
AuthorPosts
-
January 14, 2015 at 5:28 am #193185jamesblack91Participant
Hey guys,
Not sure why the ‘soon’ div doesn’t show up at all in ff. Any thoughts?
http://codepen.io/anon/pen/MYppPo
(and yes, the wrapper display is set to none; I have JQuery taking care of that).
Ps: it shows up in firefox in codepen, but not on my actual site.
Thanks in advance :)
January 14, 2015 at 5:40 am #193186Paulie_DMemberI don’t understand the question.
If you have
display:none
set nothing should show up including the child elements. That’s what it does.Anyway, if it works in Codepen then the code is, logically, correct…so there must be something else going on on your site.
I’d suggest that THAT is what we need to see.
January 14, 2015 at 5:53 am #193189jamesblack91ParticipantHi Paul,
yes, as explained, JQuery displays the div for me.
Please see screenshots for what happens.
https://dl.dropboxusercontent.com/u/30380409/Screen%20Shot%202015-01-14%20at%2011.51.33%20pm.png
(what it’s supposed to look like)
https://dl.dropboxusercontent.com/u/30380409/Screen%20Shot%202015-01-14%20at%2011.51.52%20pm.png
(How it looks in firefox).
January 14, 2015 at 6:07 am #193190Paulie_DMemberImages are no use..we can’t diagnose code from images.
I understand that Jquery displays the div for you (
show
perhaps?) but until thedisplay none
is removed (via JQ or some other means) the children will still not be visible.Anyway, we need to SEE it NOT working on a live site otherwise we can’t help.
Perhaps you could explain what is is you are trying to do as well.
January 14, 2015 at 6:19 am #193191jamesblack91ParticipantThanks Paul – I didn’t want to upload until I had it working but please see here:
Basically I want the logo to fade in, fade out and be replaced with the text. On my chrome is works perfectly (as per screenshot) but in firefox, the ‘Soon’ just doesn’t display. I’ve even tried manually doing some javascript into the url to get it to and just nup.
I have updated my original codepen with my full code. Even if I comment out the
display:none
in codepen, it still doesn’t display in firefox but it does in chrome.Thanks again.
Joel
January 14, 2015 at 7:25 am #193199Paulie_DMemberFloat the element (#soon) left.
Also, use proper text elements inside your divs to hold the text.
Text nodes are poor practice.
January 14, 2015 at 11:19 am #193242ShikkedielParticipantWeird little issue that somehow has to do with
overflow: hidden
.
Using a span inside the other div works on all browsers though :Edit – made them inline-block
<p>
elements like Paulie_D suggested.January 14, 2015 at 2:01 pm #193252jamesblack91ParticipantThank you both. Working great :)
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.