473,323 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Different cell border color overriding

Hello,
Please help, i am in a deadend.
I created a table with two rows and columns with different border color for each cell. The problem is that different cell borders overrides each one and only one is left as a result. Code example:

Expand|Select|Wrap|Line Numbers
  1. <table width="742">
  2. <tbody>
  3. <tr>
  4. <td style="border: 10px solid blue;" height="300">
  5. <h4 align="center">A</h4>
  6. </td>
  7. <td style="border: 10px solid crimson;" width="25%">
  8. <h4 align="center">B</h4>
  9. </td>
  10. </tr>
  11. <tr>
  12. <td style="border: 10px solid limegreen;" width="45%" height="300">
  13. <h4 align="center">C</h4>
  14. </td>
  15. <td style="border: 10px solid gold;" width="45%">
  16. <h4 align="center">D</h4>
  17. </td>
  18. </tr>
  19. </tbody>
  20. </table>
Jan 28 '14 #1
2 1399
Hi domazone,
I am checked your coding its create a correct table format and its show the good results ...
Jan 29 '14 #2
The table is created - width and height are fine.
The problem is with overriding border colors.
I am using wordpress - example below:
http://energymarket.lt/pvz/
Jan 29 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Pawe³ Ga³ecki | last post by:
How can I set a different border color for a table row? All I found in the MSDN for <TR> was: Scripting object.borderColor but it doesn't work for <TR> though it works for <TD>. I would like to...
2
by: Olly | last post by:
I have been using border styles on form inputs and I have noticed that on Internet Explorer 5.2 Mac the border color always comes out as link-colour blue, no matter what color I specify. This also...
14
by: Sheila King | last post by:
Hello, Am at my wits end, after spending quite a bit of time looking at online CSS docs, reading FAQs, searching this newsgroup and validating my CSS document. Was trying to copy, to some...
4
by: Christopher Benson-Manica | last post by:
Consider the following markup... <html> <head> <style> table.foo td { width: 100%%; border: 1px solid #000000; } table.button td { width: 100%%; border: 5px outset; background-color: #c0c0c0;...
1
by: Michael | last post by:
How can I use onclick to change a table cell background color. I know I can use this.className=? to change the classname. But then I would have to put the code into every single table cell. I...
8
by: Warren Sarle | last post by:
Here are two screen captures: http://www.warrensarle.com/borders.gif of this one web page: http://www.warrensarle.com/borders.php in IE and Firefox. A border-style of solid is rendered the same in...
1
by: Arpan | last post by:
The output of a DataGrid is nothing but a HTML table. To color or change the width of the outer 4 borders of a DataGrid, one can use the properties "BorderColor" & "BorderWidth" respectively but...
1
by: David Veeneman | last post by:
Is there a simple way to change a UserControl border color? I'm creating a UserControl that will have a border, using the UserControl.BorderStyle property. The standard border is black; I'd like...
2
by: abhilash12 | last post by:
pls help me when mouse move on the cell how can identify cell border using javascript
1
by: thesti | last post by:
hi, can we change the color of the border of a cell / every cell in JTable? thx
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.