Some times there are some scenarios where we might put some line breaks in buttons while doing HTML code your pages. There are few different ways that you can achieve this using HTML and CSS.
Here are few code snippets
1: <!-- Method 1 -->
2: <input type='submit' value='my \n button'>
3: <!-- Method 2 Using HTML break-->
4: <input type='submit' value='my <br> button'>
5: <!-- Method 3: Using CSS -->
6: <input type="submit" value="My button" style="white-space:normal"/>
Hope this helps!!
No comments:
Post a Comment