Log In · Register

 
 
Closed TopicStart new topic
Non-ScrollBox Comments in DIV Overlay?, Anyone know how?
phx1
post Dec 5 2006, 04:57 AM
Post #1


Newbie
*

Group: Member
Posts: 7
Joined: Dec 2006
Member No: 484,711



Hi,

I'm trying to figure out how to create a non-scrollbox comment box in a DIV Overlay. Currently, I have this code:

CODE
.comt {
visibility:visible; position:absolute; left:50%; top:880px; overflow:auto; width:1030px; height:400px;
border:4px ridge; border-color:006666;
margin-top:800px; margin-left:-500px; background-color:transparent; z-index:5;
}
.comt span, .comt b {color:ffffff; visibility:visible !important; display:block; }
.comt table { width:700px; }
.comt table table { width:0px; }
.blacktext10 { width:800px; display:inline; }
.comt a, .comt font, .comt span { visibility:visible; }


For the Top Friends/Comments, but when it gets to a certain length it keeps that length and transforms into a scrollbar. Anyone know how to edit the above code to take off the scrollbar?

Thanks
 
jellogarden
post Dec 5 2006, 06:40 AM
Post #2


Jellogarden
**

Group: Member
Posts: 16
Joined: Dec 2006
Member No: 485,087



overflow: auto

becomes

overflow: hidden


try that
 
phx1
post Dec 5 2006, 08:07 AM
Post #3


Newbie
*

Group: Member
Posts: 7
Joined: Dec 2006
Member No: 484,711



Thanks for the reply.
That did indeed take off the scroll bar, but it doesn't expand in height when a new comment is made (so it cuts them off). Any other ideas?


EDIT::: I might of figured it out (although i'm not sure if it's the best way to do it.

On this line:

overflow:auto; width:1030px; height:400px;

I changed it to this:

overflow:hidden; width:1030px; height:800px;

Basically changing the height shows the rest. But would this take up a lot of bandwidth.. I would probably need to make the height like 5,000 for it to fit a normal sized full comment list. Would I just be better off with the scroll box, is there some other way or is this a decent way to do this?

thanks
 
phx1
post Dec 5 2006, 02:53 PM
Post #4


Newbie
*

Group: Member
Posts: 7
Joined: Dec 2006
Member No: 484,711



Ok, I put the height on 0 auto, and that seems to be working good.
 
jellogarden
post Dec 5 2006, 05:44 PM
Post #5


Jellogarden
**

Group: Member
Posts: 16
Joined: Dec 2006
Member No: 485,087



So you're good?

I don't really understand how you want the comments to look.


And I know an easier code for this.



So PM me if you have more questions.
 
Bissanti
post Dec 5 2006, 06:20 PM
Post #6


Newbie
*

Group: Member
Posts: 7
Joined: Dec 2006
Member No: 485,654



All you have to do is just take out the overflow:auto completely, and also remove the height, that will make it so it expands with more comments.
 
phx1
post Dec 5 2006, 07:59 PM
Post #7


Newbie
*

Group: Member
Posts: 7
Joined: Dec 2006
Member No: 484,711



changing overflow to hidden
and height to 0 auto

seems to be working good. So I guess i'm good :).
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: