Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9051109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:49:32+00:00 2026-06-16T12:49:32+00:00

I have a html content inside a variable like var content='<p>long content…..</p><p>long content……</p><img src=abc.jpg

  • 0

I have a html content inside a variable like

var content='<p>long content.....</p><p>long content......</p><img src="abc.jpg" />'

How to display this content fully inside a small div or span or iframe without scroll bar.

I want to show a preview of the content.

Scroll bars are displayed when i use iframe.

Any solution or work around to display the entire content inside a small div or iframe. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T12:49:33+00:00Added an answer on June 16, 2026 at 12:49 pm

    You can use CSS for showing the preview inside a div. For this mention a scale of 50% (or any value suitable for you)

    transform :scale(0.5); // For Mozilla, Chrome etc
    

    For IE you can use ZOOM property.

    <body style="zoom: 50%">
       CONTENT HERE
    </body>
    

    Another option is to use zoomooz.js

    http://janne.aukia.com/zoomooz/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have HTML content in a variable like so: var data = <div
When you set an html element to have display: none , the content inside
I want to parse a html content that have something like this: <div id=sometext>Lorem<br>
Can I use a spark variable inside an html helper? Say we have <var
I have my HTML / razor code that looks like this: @model Content.Grid <tr
I have a html which looks roughly like this <div id=wallPostTemplate> <li id='comment-content--oOo-id-oOo-' class='comment-content'
Suppose we have this html content, and we are willing to get Content1, Content2,..
I am parsing an html content and have output on my screen. This website
I have a JavaScript variable: var s = <html><head><style>body{a:b;c:d}</style></head><body></body></html>; First, I am extracting the
I have some html content stored in a database field. I would like trusted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.