border help
-
I’m trying to change the border color in a table, but I can’t seem to make it change from the default color. This is the html code I’m using. Everything else in the html is working, but not the color. I’ve even changed the color to white just as a trial. What am I doing wrong?
<table border=”1″ bordercolor=”#ffffff” cellspacing=”0″ cellpadding=”1″ width=”550px” align=”center”>
<tbody>
<tr>
<td>The blog I need help with is: (visible only to logged in users)
-
Table coding is useful for arranging elements in rows and columns. If you’re talking about the frame in your latest post, you don’t need a table – see here:
Anyway, if you want to stick to the table code you pasted above, change this:
<table border="1" bordercolor="#HEX_HERE"
to this:
<table style="border:1px solid #HEX_HERE;" -
-
It’s stripping the code. When I post it and then go back to edit again, I see that the code has been stripped. ???
-
It’s stripping the code because there are mistakes in it: there should be no quotation mark before 550, there should be a semicolon after px, and there should be a = instead of : after align.
Also, align=”center” may not work in the theme you’re using. In that case write:
<div class="aligncenter" style=[etc.]Style needs some padding too.
-
- The topic ‘border help’ is closed to new replies.