Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

CSS Element

Dec 12, 2007 1:53AM PST

Greetings. Heres the problem. I am trying to create a element that is 450w and 300h, and the overflow will scroll. This works fine for Firefox, however IE is not recognizing this at all. here is the css:

#box .content {
height: 300px;
max-width: 450px;
color: #0054a6;
padding-top: 15px;
padding-left: 10px;
overflow: scroll;
display: block;
}

Can anyone help me out? I'm kinda a CSS noob so any help would be appreciated.

Discussion is locked

- Collapse -
Re: css overflow:scroll
Dec 13, 2007 6:54AM PST
- Collapse -
css overflow
Dec 16, 2007 2:41AM PST

Thanks for the link, i had already been using that example. It looks like i did everything correctly, but its just not working in IE for some reason. Any additional help I would appreciate.

- Collapse -
GOT IT!
Dec 18, 2007 12:59AM PST

i figured it out. instead of setting it as a class, i made it its own div. Once i did this it worked fine. I guess IE has a problem reading the classes of Divs?

- Collapse -
(NT) Good job. Thanks for telling us.
Dec 18, 2007 7:27AM PST