Jump to content
Sign in to follow this  
Gavin_

Creating a Table style in CSS

Recommended Posts

Gavin_

is this possible with the custom code editor? if so how should it read? thanks

Share this post


Link to post
Share on other sites
nett-ed

What "custom code editor" are you referring to? PlatformPro's Custom Code and CSS fields will only load css js or html you define so if you insert some divs and then style them via css it certainly is possible to get a table using divs and css. They're not exactly what you would call editors though.

Share this post


Link to post
Share on other sites
catrina

Hello, Let's say that you are trying to create a standard table in a post and it looks like this:

<table>
	<tr>
	<td>CONTENT</td>
	<td>CONTENT</td>
	</tr>
	</table>

Are you asking how it's possible to style it (change font colors, background colors, font style, etc.) in the custom CSS?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
Gavin_

Hi Catrina Yes to this "Are you asking how it's possible to style it (change font colors, background colors, font style, etc.) in the custom CSS?"

Share this post


Link to post
Share on other sites
Kate

@Gavin For the styling of all tables, it would be something like this:

	table{font-family:verdana;font-size:2em;}
	table th{color:#000000;font-weight:bold;}
	table td{color:#404040;}
	
Now, if you just want to target a particular table, giving it a class or ID would do the trick. You would just have to modify your CSS accordingly. For instance:
	.myTable{font-family:verdana;font-size:2em;}
	.myTable th{color:#000000;font-weight:bold;}
	.myTable td{color:#404040;}
	

I also did a quick search and found this article for your review: http://veerle-v2.duoh.com/blog/comments/a_css_styled_table/ Hopefully that's what you were looking for.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×