Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 35

Thread: DIV vs IFRAME

  1. #1
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Something I've noticed recently is that IFRAMEs are taking the web by storm. People seem to think that they make websites better, more functional, or easier to design. Well they're wrong, and here's why...

    DIVs can do just about anything that IFRAMEs can do. The only added benefit gained by an IFRAME is the ability to redirect the content to a new page without refreshing the whole outer page. The ONLY reason you would want to do this is because you have databased content in the outer page that doesn't need to get refreshed (as in for optimizing intranet applications that thousands of users will be connecting to simultaneously).

    "Well what about scrolling?" is the usual subsequent question. Well, for all you scrolling freaks, here it is:

    How to Scroll in a DIV
    It's a lot easier than most people know. All you have to do is set the "overflow" property to "scroll" and boom, there you go, a scrolling div!!! Even better than that, it's CSS1 compatible, and works in Netscape 4 and IE 5. I've attached an example for you guys to peruse. Check out how simple the code is. You'll wonder why you ever used IFRAMEs in the first place !!!

    - Steve
    .

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Scrolling within a page is really bad, anyway, which is my whole problem with iframes
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    I use both, but I prefer DIV's since I think more can be done with them, with a little creativity, ingenuity, and experimentation.
    - Brian

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    filburt,

    I agree with you for the most part, but sometimes scrolling within a page is desired functionality.

    For instance, a shopping-cart application. A shopping cart should display the person's information in a fixed table that doesn't require scrolling. Below that, you place a list of the items in the user's shopping cart.

    Make that list a scrolling div that scales to the width and height of the page, and the user can scroll up and down through it to view all the items without ever eliminating a view of the user information or cart-modification buttons that allow him to update quantities or proceed.

    In this type of case the scrolling actually INCREASES usability of the page, because it limits the scrolling to the portion that requires it (the list of items in the cart), and doesn't eliminate the user's view of the rest of the information on the page.

  6. #5
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    moved to tutorials.
    JR

  7. #6
    Member Black Vivi's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    75
    Member #
    1072
    i like scrolling inside pages, and i use both IFrames and DIVsbtw, here's something a bit better than transio's because it doesn't make the scrollbar at the bottom, unless it goes past the width of the DIV
    Download Firebird now!

  8. #7
    Member a-drive's Avatar
    Join Date
    Mar 2003
    Posts
    94
    Member #
    809
    Geez, you guys are like how old?

    This is old news. There's been many confrontations between the two tags for ages now and it's been settled many times. It's been proven who the clear winner of the two is. But, I'll let you tussle that amongst yourselves.

  9. #8
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Please keep a mature and kind attitude.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  10. #9
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Originally posted by a-drive
    Geez, you guys are like how old?
    It's not an issue of age, but knowledge. Thus, your insult itself seems random and misdirected... which makes YOU look like the child.

    This is old news. There's been many confrontations between the two tags for ages now and it's been settled many times.
    It's never been settled on this board. Many people make posts asking about iframe functionality when they clearly are looking for div functionality. The intention of this post was to clarify the distinction for those who don't know.
    It's been proven who the clear winner of the two is. But, I'll let you tussle that amongst yourselves.
    There IS no "clear winner". They are two separate elements with different intended functionality. There is a necessary use for each (which explains the existence of both). A statement that there is a "clear winner" displays more ignorance than lack of knowledge of the existence of both.

  11. #10
    Member nepharo's Avatar
    Join Date
    Jun 2003
    Posts
    73
    Member #
    1729
    A-drive,
    Disagreements and discussions are beneficial to the understanding of technology. If we didn't discussed or devated over subjects, then we would always just look at them from a single perspective. We all know that's not good.
    Transio, I think a-drive didn't mean it in a bad way, though. I think you were just a little bit harsh :chinese: </scolding>
    I cannot self terminate, you must lower me into the fire.


Page 1 of 4 1 2 3 ... LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

better than iframe
,
div iframe
,
div or iframe
,

div vs iframe

,
html div vs iframe
,
iframe versus div
,

iframe vs div

,
iframe vs div html
,
iframes vs div
,
when to use iframe vs div
Click on a term to search for related topics.
All times are GMT -6. The time now is 09:57 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com