Forums

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

Home Forums CSS Centering elements Chrome vs Safari

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #197448
    analis
    Participant

    passing the mouse on the white square appear link.

    how can I center link in chrome and safari ?

    http://codepen.io/anon/pen/KwxzKp

    #197450
    Paulie_D
    Member

    Your HTML structure isn’t really set up for this…I’m not sure why the ul is inside the trigger div (which is, in itself, floated right).

    You’d need to re-build a little like so for something a little simpler.

    http://codepen.io/Paulie-D/pen/ZYMWbp

    #197459
    analis
    Participant

    the links disappear you can not click

    #197468
    Paulie_D
    Member

    Hmmm…on thinking about it, I’m not sure you can even do this with CSS without absolute positioning which I think you should avoid.

    I’d gonna have to think some more…this sort of thing is usually handled by Jquery.

    #197470
    Paulie_D
    Member

    No…in fact I’m pretty sure you can’t.

    If the toggle is to hover over the little while block then the menu would need to be inside it to stay visible …and that would require absolute positioning to center it.

    I’d go with Javascript / Jquery.

    #197472
    analis
    Participant

    my code works but it is not centered on safari

    test it

    center it on safari ?

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