PDA

View Full Version : CSS and Text inclusion



creative
07-09-2005, 03:11 AM
Is there a way to include body text in a css and have it dynamically import into a <div> tag?


Also, is what would the css look like if you wanted to have a <div> tag that scrolled in a certain size? Like an iframe without all the browser issues.


Creative

mwinter
07-10-2005, 12:59 AM
Is there a way to include body text in a css and have it dynamically import into a <div> tag?No. CSS can be used to produce dynamic content, but it's not designed as a mechanism for inserting significant amounts of content. It's also not supported by IE.


Also, is what would the css look like if you wanted to have a <div> tag that scrolled in a certain size?
#your-div {
height: ...;
width: ...;
overflow: auto;
}


Like an iframe without all the browser issues.It still has issues. Not all browsers will support it, and it could cause usability problems if the document itself requires scrollbars.

Mike