Jim O.
Jim O.

Reputation: 1111

How to change font-size of embed text

I have the following code in my html document:

<embed src="https://www.w3.org/TR/PNG/iso_8859-1.txt" style="width:100%; height: 100%;font-size:1.2em">

Above code grabs a txt file locally, then display its contents in html. The problem is that I am unable to change the font size. Here is what I have tried

None of these work. Please help?

Upvotes: 1

Views: 3101

Answers (2)

Constantin
Constantin

Reputation: 4011

I don't think that you can do this. The only properties allowed on embed are src, type, height and width (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed). It will work similarly to an iframe, so it's an isolated #document inside your tag: enter image description here

Upvotes: 0

Vishal Pandey
Vishal Pandey

Reputation: 359

div {font-size: 3em;} div font {font-size: inherit;} It will change the embed text size but some it doesn't work on some editors. Hope it'll helpful

Upvotes: -1

Related Questions