0

I've got this in the index(this is only a small portion of it)

<article id="abms">
    <p>
        Mauris vulputate lorem ac nibh rhoncus, eu mattis lorem mattis. Maecenas metus dui, rhoncus eget erat quis, vehicula luctus justo. Aenean vel porta est, tristique mollis metus. Mauris gravida diam sit amet tellus pellentesque hendrerit. Maecenas ut suscipit metus. Nunc vel volutpat est, porta sodales nibh. Pellentesque varius ac massa nec varius.
        Mauris vulputate lorem ac nibh rhoncus, eu mattis lorem mattis. Maecenas metus dui, rhoncus eget erat quis, vehicula luctus justo. Aenean vel porta est, tristique mollis metus. Mauris gravida diam sit amet tellus pellentesque hendrerit. Maecenas ut suscipit metus. Nunc vel volutpat est, porta sodales nibh. Pellentesque varius ac massa nec varius.
    </p>
</article>

And i've got this on the stylesheet:

#abms
    {
        overflow:hidden;
    }

Doesnt matter what I try, I can't get the text to hide, I want this text to hide with overflow:hidden because I want it to be visible when using overflow:visible in my jquery code sheet.

All of the files are linked correcty (i know this because all the other css and jquery effects are working) but I just can not make this hide.

I've seen tutorials doing this and it works, why won't it work for me? if some one could point the error out, that would be great.

Someone help me please

Thanks

1
  • 2
    give width height to id Commented Jul 27, 2013 at 23:15

2 Answers 2

1

If you want to hide/show the text you have to change the display value, not overflow.

CSS:

#abms {
   display: none;
}

jQuery:

$('#abms').fadeIn(200)

Demo: http://jsfiddle.net/NcDUs/

Sign up to request clarification or add additional context in comments.

Comments

0

try adding width and hide the text will hide in it

http://jsfiddle.net/kKzyT/

like

#abms
    {
      width:400px;
     height:200px;
     overflow:hidden;
    }

here the text will hide in width:400px;and height:200px;

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.