6 replies [Last post]
bronzino1
bronzino1's picture
User offline. Last seen 22 weeks 5 days ago. Offline
rank Regular
Regular
Timezone: GMT-5
Joined: 2010-03-07
Posts: 13
Points: 16

I am very new to CSS, and I'm slowly deploying it on my website, bit by bit. For now, I have a frameset, because I am not yet good enough at CSS to replace it. I'm aware that it is being deprecated, so I do plan to attack that subject eventually. For now I'm just trying to teach myself to build pages that don't rely on tables for layout. Smile

One question I do not see answered is whether frameset widths can be set by CSS. I see lots of "how to mimic framesets in CSS" when I google the subject, which creates the inference that true frameset properties cannot be handled by CSS. But I've not seen any specific answer to that question. Can anyone advise whether it's possible to set frameset column widths?

Thanks in advance for any help!

Elizabeth

Ed Seedhouse
Ed Seedhouse's picture
User offline. Last seen 12 hours 24 min ago. Offline
rank Guru
Guru
Timezone: GMT-7
Joined: 2005-12-14
Posts: 3336
Points: 429

Framesets are not "being"

Framesets are not "being" deprecated, they already are deprecated. That doesn't mean you can't use them and browsers will generally render them, but nevertheless you are just storing up trouble for yourself. Learning frames is just a total waste of time when you could be learning to do things right. Every moment you spend using frames is a moment wasted.

Learn to do things correctly from the start.

I mean, it's your life, but why do you want to waste your time learning dead end code techniques?

Ed Seedhouse

Wrangellia, on the shores of the Salish sea.
Posting Guidelines

davestone
davestone's picture
User offline. Last seen 7 weeks 3 days ago. Offline
rank Enthusiast
Enthusiast
Timezone: GMT-7
Joined: 2009-05-11
Posts: 74
Points: 43

Perhaps look into server side

Perhaps look into server side includes to call different files.

If your server has PHP, then it's quite easy to put the code for your sidebar in a separate file and then include it in your pages. (This is the closest thing I can think with regards to frames).

But yeah, jump in head first to CSS - once you get it, it's so much easier and you have a lot more control over your layout.

bronzino1
bronzino1's picture
User offline. Last seen 22 weeks 5 days ago. Offline
rank Regular
Regular
Timezone: GMT-5
Joined: 2010-03-07
Posts: 13
Points: 16

davestone wrote: If your

davestone wrote:

If your server has PHP, then it's quite easy to put the code for your sidebar in a separate file and then include it in your pages. (This is the closest thing I can think with regards to frames).

Yep, my server supports PHP and I think I can figure out how to do that. Thanks so much for your help and kind advice. Smile

Hugo
Hugo's picture
User offline. Last seen 3 hours 48 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+1
Joined: 2004-06-06
Posts: 14200
Points: 1256

This is the closest to

This is the closest to replacing the nature and point of frames, however PHP includes do not simply act as frames only refreshing/reloading the main frame rather than links frame, often this is perceived as a problem, it's not reloading all the page is NOT an issue nowadays and most sites work this way that use server side languages. Frames are utterly obsolete and also hinder search engines in some respects, no one uses them any longer.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

davestone
davestone's picture
User offline. Last seen 7 weeks 3 days ago. Offline
rank Enthusiast
Enthusiast
Timezone: GMT-7
Joined: 2009-05-11
Posts: 74
Points: 43

Good point Hugo. I wasn't

Good point Hugo. I wasn't clear that the includes would replace the need for frames. That way the include files can be edited separately and the changes would affect the entire site at once. But, I'm sure you know this already. Big smile

bronzino1
bronzino1's picture
User offline. Last seen 22 weeks 5 days ago. Offline
rank Regular
Regular
Timezone: GMT-5
Joined: 2010-03-07
Posts: 13
Points: 16

I did actually figure out how

I did actually figure out how to write an "include" statement, and conceptually, it is working precisely as I would like. Mechanically, I misunderstood what content to "include," but that is being addressed in another thread. Thanks for the excellent tip, Dave.

Elizabeth