Tasneem HamedAlneel
Tasneem HamedAlneel

Reputation: 53

i could not add horizontal scrollbar to iframe

I am shaping a family tree using list as element to build the tree my problem is when the get larger no horizontal scrollbar appears I am using iframe and css to control the style of the tree

this is the style of the iframe

 .frame
 {
     overflow: scroll;
     width: 149px;
     height: 100%;
 }

and I added this attribute to the tag but it didn't work also

 <iframe class = "frame" width="200" height="200" scrolling="yes" src="">
 </iframe>

can someone help me please.

Upvotes: 0

Views: 2391

Answers (2)

equerambug
equerambug

Reputation: 47

Please run the code and let me know where your having problem may be i am unable to understand your question

 .frame
 {
     overflow: scroll;
     width: 149px;
     height: 100%;
 }
 <iframe width="800" height="800" scrolling="yes" src="stackoverflow.com">
 </iframe>

Upvotes: 0

Ced
Ced

Reputation: 1301

Correct me if I'm wrong but shouldn't it be

 <iframe class="frame" width="200" height="200" scrolling="yes" src=""></iframe>

to apply the .frame class to the iframe

Upvotes: 1

Related Questions