skip to Main Content

Toggle for different height and width in JavaScript

I want to make a toggle which toggles the height and the width of an element whenever it's clicked. <div class="flexbox-container" id="main" onclick="staybig()">Create Account</div> .flexbox-container { transition: height 0.5s, width 0.5s; height: 100px; width: 100px; display: flex; justify-content: center; text-align:…

VIEW QUESTION

Html – Table width stretches even though explicitly limited, how to fix this?

This is what I got so far: <center><table border="0" width="100%"> <tr> <td></td> <td align="center" valign="top" colspan="8" bgcolor="#000000" bordercolor="#FFFFFF"><p align="center"><font color="#FFFFFF" face="Arial">Table title</font></p> </td> <td></td> </tr> <tr> <td></td> <td align="center" valign="top" width="200" colspan="2" bgcolor="#F0F0F0" bordercolor="#FFFFFF"><div style="max-width: 200px"><p align="center"><a href="link url" title="1"…

VIEW QUESTION
Back To Top
Search