4 Replies - 622 Views - Last Post: 12 March 2018 - 12:04 PM Rate Topic: -----

#1 aspfun   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 103
  • Joined: 16-January 13

How to make horizontal scrolling bar always stay at meddle of iframe?

Posted 12 March 2018 - 11:41 AM

I added a iframe in one web page as code below.

<iframe src="GetHandler.ashx" height="350" width="400" scrolling="yes"></iframe>

In GetHandler.ashx, a jpg image file will load.

How to make horizontal scrolling bar always stay at meddle of iframe? 
Is This A Good Question/Topic? 0
  • +

Replies To: How to make horizontal scrolling bar always stay at meddle of iframe?

#2 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 14691
  • View blog
  • Posts: 58,704
  • Joined: 12-June 08

Re: How to make horizontal scrolling bar always stay at meddle of iframe?

Posted 12 March 2018 - 11:45 AM

Why would you have an iframe you always need centered and cannot move?
Was This Post Helpful? 0
  • +
  • -

#3 aspfun   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 103
  • Joined: 16-January 13

Re: How to make horizontal scrolling bar always stay at meddle of iframe?

Posted 12 March 2018 - 11:52 AM

View Postmodi123_1, on 12 March 2018 - 11:45 AM, said:

Why would you have an iframe you always need centered and cannot move?


Sorry, I just want to display image title which always at the center page.
After loading, user still can move by scrolling.
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 14691
  • View blog
  • Posts: 58,704
  • Joined: 12-June 08

Re: How to make horizontal scrolling bar always stay at meddle of iframe?

Posted 12 March 2018 - 11:55 AM

Just a heads up - iframes are typically a poor option and you should be doing some evaluation if you are going to be using them.

Is the iframe source a website you run? Some wonky control?
Was This Post Helpful? 0
  • +
  • -

#5 aspfun   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 103
  • Joined: 16-January 13

Re: How to make horizontal scrolling bar always stay at meddle of iframe?

Posted 12 March 2018 - 12:04 PM

View Postmodi123_1, on 12 March 2018 - 11:55 AM, said:

Just a heads up - iframes are typically a poor option and you should be doing some evaluation if you are going to be using them.

Is the iframe source a website you run? Some wonky control?


Please check the attached file.
Once page loading I want to display the report sample at iframe.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1