Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

<object> responsive width

Tags:

html

css

In my fixed version site I have :

<object type="application/x-shockwave-flash" data="uppod.swf" width="560" height="370">

How do item tag <object> is responsive ?

object{
    width:100%;
    max-height:100%;
}

It doesn't work .

How change attributes width="560" height="370" ?

like image 312
Michael Phelps Avatar asked Jan 08 '23 08:01

Michael Phelps


2 Answers

Remove width and height attributes here:

<object type="application/x-shockwave-flash" data="uppod.swf">

and in CSS:

object {
     width:100%;
     max-height:100%;
}
like image 189
Said Kholov Avatar answered Jan 17 '23 23:01

Said Kholov


The HTML settings override CSS. Remove them from your HTML tag and set them only in CSS.

<object type="application/x-shockwave-flash" data="uppod.swf">
like image 22
Dropout Avatar answered Jan 18 '23 00:01

Dropout