Jump to content

somebody help please , CSS driving me crazy Loool

- - - - -

  • Please log in to reply
3 replies to this topic

#1
alrazy1

alrazy1

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
.clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}

this will place a "." after the content of any element with .clearfix class applied ,
but what i dont understand is the rest proporties on what element they will be Applied on the clearfix element or on the next element in the html code ?!!!
those proporties ===>>> display: block;height: 0;clear: both;visibility: hidden;
:c-grin:?????!!!!!

#2
Bertan

Bertan

    Learning Programmer

  • Members
  • PipPipPip
  • 43 posts
I never tried :after but I'm pretty sure they will be applied to the content of .clearfix:after which means only the "."

#3
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
i had replied to the other post u made on the javascript side look into that

#4
oldhendra

oldhendra

    Learning Programmer

  • Members
  • PipPipPip
  • 30 posts
Element with this class would stop floating effect to elements placed after it.
I think any text content: of any length will do, not only ".", but will not be part of DOM.
That is what :after is for.

The clear: style requires clearfix to be a block element but its height is not necessarily zero.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users