Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] div not displaying in firefox

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #193185
    jamesblack91
    Participant

    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 :)

    #193186
    Paulie_D
    Member

    I 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.

    #193189
    jamesblack91
    Participant

    Hi 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).

    #193190
    Paulie_D
    Member

    Images are no use..we can’t diagnose code from images.

    I understand that Jquery displays the div for you (show perhaps?) but until the display 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.

    #193191
    jamesblack91
    Participant

    Thanks Paul – I didn’t want to upload until I had it working but please see here:

    http://www.rozenau.com.au

    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

    #193199
    Paulie_D
    Member

    Float the element (#soon) left.

    Also, use proper text elements inside your divs to hold the text.

    Text nodes are poor practice.

    #193242
    Shikkediel
    Participant

    Weird little issue that somehow has to do with overflow: hidden.
    Using a span inside the other div works on all browsers though :

    Logo fade pen

    Edit – made them inline-block <p> elements like Paulie_D suggested.

    #193252
    jamesblack91
    Participant

    Thank you both. Working great :)

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘CSS’ is closed to new topics and replies.