iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-31-2004, 11:59 AM
RikR's Avatar
WebProWorld Pro
 
Join Date: Oct 2004
Location: Wake Forest, NC USA
Posts: 130
RikR RepRank 0
Default Better way than using iframe?

I am a novice webmaster experimenting and have the following page for testing:

http://www.twowayradiodirectory.com/asptest.html

(ignore the name and title, related to old experiments)

On this page I am using "iframe" to create the window and show the linked page.

the linked page is here:

http://www.twowayradiodirectory.com/wsnlinks/index.php


I have read that iframe is not recommended for this sort of thing.

So, what would be a better way to do this and assure browser rendering?

Thanks
__________________
Rik Rasmussen
Two Way Radio Directory
http://twowayradiodirectory.com
Reply With Quote
  #2 (permalink)  
Old 11-01-2004, 09:53 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default Using CSS to mimic iframes

Quote:
Originally Posted by RikR
So, what would be a better way to do this and assure browser rendering?
This all depends on which browsers you're targetting. You can use div elements with their overflow property set to auto, but this will not be recognised by older browsers that are unable to interpret the CSS correctly.

Here are some examples of the CSS technique (from the beforethedog site).

Also there have been previous discussions on this topic, here's one of them
Containers and scroll bars

Hope that's of some help

Paul
Reply With Quote
  #3 (permalink)  
Old 11-01-2004, 10:54 AM
RikR's Avatar
WebProWorld Pro
 
Join Date: Oct 2004
Location: Wake Forest, NC USA
Posts: 130
RikR RepRank 0
Default

In order to use this CSS technique, must I have a seperate style sheet or can the code be directly in my html page that I want the container on?
__________________
Rik Rasmussen
Two Way Radio Directory
http://twowayradiodirectory.com
Reply With Quote
  #4 (permalink)  
Old 11-01-2004, 11:03 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default Either method would work...

You could use either inline styles in your page's HTML code, or you could add them to a separate stylesheet. I prefer to use a separate stylesheet for ease of maintenance as much as anything.

Paul
Reply With Quote
  #5 (permalink)  
Old 11-01-2004, 04:09 PM
RikR's Avatar
WebProWorld Pro
 
Join Date: Oct 2004
Location: Wake Forest, NC USA
Posts: 130
RikR RepRank 0
Default

The page I had linked into the "iframe" contained a Google AdSense banner. This stopped all AdSense appearing on any of my pages.

Deleting the experimental page from my site directory restored my AdSense ads on my other pages.

Found this on Google:

The AdSense code was placed within an IFRAME.
Our targeting technology is not optimized to serve ads within an IFRAME. If you placed the AdSense code in an IFRAME, your site may display less targeted ads or public service ads. For better results please implement our ad code directly into the source of your web page. Once you make these changes, relevant ads may not appear immediately. Until we are able to re-crawl your site, which may take up to 30 minutes or more, you page may continue to display untargeted or public service ads.
__________________
Rik Rasmussen
Two Way Radio Directory
http://twowayradiodirectory.com
Reply With Quote
  #6 (permalink)  
Old 11-14-2004, 07:52 PM
Intensity's Avatar
WebProWorld Member
 
Join Date: May 2004
Location: Tampa FL
Posts: 52
Intensity RepRank 0
Default

What you can do, is utilize the Div function like this.

<div style="height: 200px; width: 300; overflow: auto ">txt; banner, etc</div>

The overflow: auto is usable if you want to have a srollbar.

You don't need to have an external sytle sheet. Its primary purpose is to have your web settings cached with the browser, which overtime will speed up the loading speed of your web pages.

Hope this helps
Reply With Quote
  #7 (permalink)  
Old 11-15-2004, 08:02 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

Erm... yes, that's what I suggested! :o)
Reply With Quote
  #8 (permalink)  
Old 11-16-2004, 10:10 AM
WebProWorld Pro
 
Join Date: May 2004
Location: Sydney
Posts: 146
ozchris RepRank 0
Default

Topical.

I was just about to post asking a question about scrollbars.

I have http://www.sydney-web-design.com/tem...template12.htm using a scrollbar.

Q1: IE lets me colour the scrollbars. Is there any way at all to make them a nice bright orange in Mozilla or Opera?

Q2: Why is IE truncating the top of my menu balls? They work ok in Mozilla and Opera. EDITED - fixed that finally.

ta Chris
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:18 AM.



Search Engine Optimization by vBSEO 3.3.0