WEB DESIGN - Can CSS be used to provide frame designs?

creative_designs_ca's picture

Can CSS be used to provide frame designs? I was using frame set but my IT guy told me to use CSS instead. How do I do that? Thanks

ralf h.'s picture

Instead of of frames you can us DIVs. The content of DIVs can be scrollable, the DIV can have a fixed position and so on.

Ralf

blank's picture

It sounds like your IT guy was just parroting something he heard elsewhere, or he would have given you more useful advice. Frames, and their replacements, are a feature of HTML and XHTML, and are used to layout pages. CSS is a system used to create a visual style for a web page, and may or may not affect layout, depending on how the HTML/XHTML is set up. It sounds like you should probably take a few web design classes to get a handle on this stuff—these are circa 1999 web standards, at this point there’s no reason to be designing a web site without a firm handle on XHTML and CSS.

Florian Hardwig's picture

Hi EC,

read this article by Roger Johansson, why frames shouldn’t be used anymore: Who framed the web: Frames and usability.
And dig right into CSS Frames by the same guy.

creative_designs_ca's picture

Ralfs, Thanks for your feedback!
I need a "frame" or something because I need an outside site to be shown in a specific page w/o actually leaving my site. (Not really about the scrolling part of CSS)
I need users to be linked there (booking engineer) without leaving the site and I'm being honest...I don’t know how to do that. :(
Thanks

creative_designs_ca's picture

Thanks Florian Hardwig!

ralf h.'s picture

I need an outside site to be shown in a specific page w/o actually leaving my site.

That's not possible without frames!
You may try using an iframe or a popup window.

Ralf

creative_designs_ca's picture

Thanks again Ralf!

Alaskan's picture

Hey Ralf -

No offense, but you're not looking too butch with that heart on your head. You look like you're soliciting valentines.

Too bad the icon doesn't appear below your avatar rather than on it, huh? Just a thought.

AK

aluminum's picture

"Frames, and their replacements, are a feature of HTML and XHTML, and are used to layout pages."

Eh...sort of. Frames are used to group multiple pages into one browser view. For the most part, they are bad, and antiquated. (see florian's post).

As for showing another site within yours, well, that is actually the one main reason to use a frame, so yea, go for it. You might want to use an iFrame for that.

That said, are you SURE you need to trap the other site in a frameset? It's fine to just link off to that site. And often much preferred by site visitors. Also, external sites can block your ability to load their site in a frameset if they so desire.

Syndicate content Syndicate content