css and table settings
-
I would like to format a table in css. Whenever I put this code in the html editor of my page it goes away when I go back to edit that page. My page id is 79. How can I input this table code into css for this specific page and is this the best way to do this? Thank You.
<table><table style=”width:85%;margin-left:7.5%;margin-right:7.5%;”>
<col style=”width:25%;” /> <col style=”width:25%;” /> <col style=”width:25%;” /> <col style=”width:25%;” /> </table>The blog I need help with is: (visible only to logged in users)
-
Hi there,
You certainly can add these table styles into your custom CSS, and that will keep you from having to check them each time you edit or create a new table on that page. (Just so you know, it will change the formatting for any tables you add to that page.)
To add custom CSS, go to Appearance > Customize in your dashboard and select CSS from the Customize tools. In the CSS editor, you can enter the following CSS:
.page-id-79 div.page table { width: 85%; margin-left: 7.5%; margin-right: 7.5%; } .page-id-79 col { width: 25%; }Please let me know how that goes! :)
If you have additional CSS questions, you can ask our expert staff and volunteers in the CSS Customization forum, where we do most of our CSS support:
https://en.forums.wordpress.com/forum/css-customization
- The topic ‘css and table settings’ is closed to new replies.