Registrar for domain name + iPage web hosting services?

Click Here To View All Answers...

Got a question, hope someone can answer... Registrar for domain name + iPage web hosting services? Looking forward for any answer or 2. Another question I got... Now, below is my code for creating a small and simple table with rows and columns :.

If you copy, paste and view the code in a HTML file and view it in a browser, you'll see a table with several rows and 2 columns..

My questions are :.

1) How do I make the background of the first row(Name, Notes) a different color other than white?.

For example, I want grey to be the background color for the 1st row..

2) As you can see, the borders of this table is kind of indented and sunken. How do I make it totally flat, with just a 1 pixel flat black border?.


Comments (6)

I'm stumped. I'm not so sure what is the answer to your question. I'll do some research in Google and get back to you if I discover an useful answer. You should email the people at iPage as they probably can help you..

Comment #1

Hey there, glad I could help you a bit Xeon.


Now let's see.. the border thing.. did you want a border around every table cell/row(just as it appears with border="1" only in a different color?)?.

If that's what your looking for, I guess you could just go like so:.

<table border="1" bordercolor="black">.


Style="border-width: 1px; border-color: black".

Should go in the <table> tag, but maybe this wasn't what you were looking for, this would put a single border around the whole table(not through-out it, if that makes sense)..

Now about the color thing.. the color you chose (#000FFC) would.


Be considered a 'web safe' color(according to photoshop.

), which is why I suspect that it doesn't work with your tables. If you have a program like Photoshop(what I use), or maybe Paint Shop Pro can do this as well.. but they can show you which colors are 'web safe', or if your choosing a color that isn't. Maybe try this one: 0000FF instead of your other one..

Hope this helps.


Comment #2

From Daerus:.

Hi there and thanks a lot, Daerus! Things are much closer to what I want now, although it's still not exactly the same..

I've attached a screenshot to this post to illustrate the border I need..

The code you gave me draws a flat black border around the table, and that's good!.

But it also draws borders around each cell..

Thanks, Daerus! U rule!.


Comment #3

Ah, ok. I see what you need. This is easily done with the cellspacing and cellpadding tags. Add this to the <table> tag:.

Cellspacing="0" cellpadding="0".

This will set the table spacing and padding between each of the cells/rows to 0 (if you don't specify the cellspacing or padding, it will be a default of 3 I believe). That should get you the result that you want..

Feel free to ask if you have any other questions.


Comment #4

From Daerus:.

Thanks a lot, Daerus! It's much much better than before, and everything looks fine. The only thing left is that the style of the border seems to be kinda "raised"/embossed, and the kind of border I want is a flat, single line, like when you draw on a paper with a ruler and a pencil : the kinda flat, 1 line border..

I remember seeing this kinda border before, but if it requires time and lots of thinking, then I guess you can forget about it..

Thanks, Daerus!.


Comment #5

Hey Xeon.


You can also make a background image using Background, I believe!..

Comment #6

Hi there MorrowWasted!.

How have you been? U really should participate more in the CodeGuru forums...

Comment #7

This question was taken from a support group/message board and re-posted here so others can learn from it.