|
 |
|
|
06-24-2009, 05:23 PM
|
Using frames within CSS
|
Posts: 4
Name: phil
|
Hi,
I have question about using frames within ccs.
If we take the following:
<html>
<frameset rows="90, *, 100">
<frame src="menu.html" name="top frame" scrolling="no" frameborder="0" nosize>
<frame src="Home.html" name="middle frame" scrolling="yes" frameborder="0" nozize>
<frame src="bottom.html" name="bottom frame" scrolling="no" frameborder="0" nosize>
</frameset>
</html>
I know the above isn't recomment but I still prefer due to followings:
- All frame including html files being load within specified frame
- Links clicked inside of menu.html, are being open inside of "middle frame" without breaking frame
- External link being clicked inside of home.html leading to pdf file also doesn't break frame example:
<a href =" http://www.somewhere.com/file.pdf" target="middle frame">Winter 2008 news</a>
Now is it possible doing the above using CSS including opening a pdf file still without breaking frame as seen above?
I am fairly new to CSS and we have to make sure coding work on all browser.
Regard
|
|
|
|
06-24-2009, 05:26 PM
|
Re: Using frames within CSS
|
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
I have only one word for you: don't.
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
|
|
|
|
06-24-2009, 05:33 PM
|
Re: Using frames within CSS
|
Posts: 137
Name: Eric Reese
Location: Maryland, USA
|
I have three words for you:
Listen to wayfarer07
__________________
I am 17 years old.Looking for Web Design Job(s). If interested use my Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
Funny Line- "I'll Twitter your Yahoo! until I Google all over your FaceBook :D
|
|
|
|
06-24-2009, 11:53 PM
|
Re: Using frames within CSS
|
Posts: 4
Name: phil
|
Ok then I will still continue using frameset then!
Thank for your reply
|
|
|
|
06-25-2009, 09:40 AM
|
Re: Using frames within CSS
|
Posts: 10,017
Location: Tennessee
|
Quote:
|
- All frame including html files being load within specified frame
|
BUT, your load times are going to be longer because you're not loading ONE file, you're loading THREE!
Quote:
|
- Links clicked inside of menu.html, are being open inside of "middle frame" without breaking frame
|
There's no reason to use a frame for that, and it's not efficient at all. If you think you're saving bandwidth or something by doing this - you're not.
Quote:
|
- External link being clicked inside of home.html leading to pdf file also doesn't break frame example:
|
You still don't need a frame. You could open a PDF in a modal window (like Lightbox), or just let it open as it normally would.
Frames are first OLD, second, they are horrible for accessibility, and last but not least, they are NOT the way to go if you want your site indexed by search engines - the framed pages will NOT be crawled.
I would direct you to these articles:
http://godbit.com/article/why-are-frames-bad
http://www.yourhtmlsource.com/frames/goodorbad.html
http://www.mattheerema.com/web-desig...re-frames-bad/
http://www.search-marketing.info/traps/frames.htm
I think that's enough, though there are plenty more where they came from !
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
|
|
|
|
06-25-2009, 10:03 AM
|
Re: Using frames within CSS
|
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Quote:
|
the framed pages will NOT be crawled.
|
Actually, technically the pages are crawled, but each frame becomes an "orphan", not a part of the main content. So each frame is seen as separate content, which is almost as bad as if it is not there.
Even with IFRAMES this is a problem, though there is still some main content (the frame is still an orphan), but if you use a FRAMESET, there will be no main content whatsover - which is absolutely horrible if you want your page to be public.
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
|
|
|
|
06-26-2009, 02:48 AM
|
Re: Using frames within CSS
|
Posts: 4
Name: phil
|
Quote:
Originally Posted by wayfarer07
Actually, technically the pages are crawled, but each frame becomes an "orphan", not a part of the main content. So each frame is seen as separate content, which is almost as bad as if it is not there.
Even with IFRAMES this is a problem, though there is still some main content (the frame is still an orphan), but if you use a FRAMESET, there will be no main content whatsover - which is absolutely horrible if you want your page to be public.
|
Well, if I add the following to index file, that shouldn't be a problem!
<html>
<head>
... frameset and ect...
</head>
<body></body>
</html>
Regards
|
|
|
|
06-26-2009, 04:11 AM
|
Re: Using frames within CSS
|
Posts: 13
Name: Sean Lum
Location: Portland, Oregon, USA, Planet Earth
|
frameset = ugly-old-practice.
Reasons:
Bad for SEO (ie no crawling)
complicated linking
its frowned upon in general.
__________________
I'm 17 years old and looking for work.
web/information/graphic Design/SEO/Re-design
Please login or register to view this content. Registration is FREE
|
|
|
|
06-26-2009, 09:44 AM
|
Re: Using frames within CSS
|
Posts: 10,017
Location: Tennessee
|
Quote:
<html>
<head>
... frameset and ect...
</head>
<body></body>
</html>
|
Horrible.. and wrong, framesets don't go in the <head> section!
In case you're not getting it from the responses here, frames are just bad for so many reasons. Step into the 21st century of web building and use modern techniques.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
|
|
|
|
06-26-2009, 11:51 AM
|
Re: Using frames within CSS
|
Posts: 1,772
Name: Stephanie
Location: Oklahoma
|
Even when your framed pages do get indexed, it's still bad. What if I search google for something, and one of your "frame" paged comes up. I click on it and all I see is the content of that page (what would normally show up inside a frame on your site). I don't really know what site it belongs to, I don't have any navigation, get confused, and leave. If I found this page and it was not meant to be part of a frameset, you might have gained a new user/customer.
I think everything you want to do is possible without using framesets - aside from loading the pdf. But like other's have mentioned, you can use a lightbox or even let it open normally.
|
|
|
|
06-26-2009, 02:07 PM
|
Re: Using frames within CSS
|
Posts: 4
Name: phil
|
Quote:
Originally Posted by angele803
Even when your framed pages do get indexed, it's still bad. What if I search google for something, and one of your "frame" paged comes up. I click on it and all I see is the content of that page (what would normally show up inside a frame on your site). I don't really know what site it belongs to, I don't have any navigation, get confused, and leave. If I found this page and it was not meant to be part of a frameset, you might have gained a new user/customer.
I think everything you want to do is possible without using framesets - aside from loading the pdf. But like other's have mentioned, you can use a lightbox or even let it open normally.
|
Well, actually there few programs that allow choosing which pages to be spidered or not, including disable right clicking on links.
If spidered is same thing as crawling then I should be on right track.
If lightbox is same as opening link as normal when clicked on and see address bar changing accordingly, then I say forgot it.
Regard
|
|
|
|
06-26-2009, 03:19 PM
|
Re: Using frames within CSS
|
Posts: 10,017
Location: Tennessee
|
Quote:
|
including disable right clicking on links.
|
And WHY would you mess with that functionality ?? All that is is some javascript, which anyone with a brain can disable and resume right-clicking all they want !
Quote:
|
If lightbox is same as opening link as normal when clicked on and see address bar changing accordingly, then I say forgot it.
|
Not quite.. maybe you should Google "lightbox" and see for yourself.
You seem determined to ignore all the best practices that we have been pointing out.. so all I can then say to you is "forgot it!" 
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
|
|
|
|
06-27-2009, 10:13 AM
|
Re: Using frames within CSS
|
Posts: 3
|
u guys are rocking......
nice tips.....
thanks to everyone for such wonderful tips......
|
|
|
|
|
« Reply to Using frames within CSS
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|