Solved

new to html

Posted on 2011-03-01
2
136 Views
Last Modified: 2012-05-11
I want to add background to header and keep very thin border. Something that look nice.
<table border="1" cellpadding="1" cellspacing="0" width="100%" >
<tr>
<th colspan="2">Table header</th>
</tr>
<tr>
<td width="20%">Table cell 1</td><td>Table cell 2</td>
</tr>
</table>
0
Comment
Question by:VBdotnet2005
2 Comments
 
LVL 22

Accepted Solution

by:
Om Prakash earned 125 total points
ID: 35014518
To learn HTML, please check the following website:
http://www.w3schools.com/html/default.asp
<table border="1" cellpadding="1" cellspacing="0" width="100%" style="border-collapse:collapse;" >
<tr>
<th colspan="2">Table header</th>
</tr>
<tr>
<td width="20%">Table cell 1</td><td>Table cell 2</td>
</tr>
</table>

Open in new window

0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 35016160
i guess you need to check this rather http://www.w3schools.com/css/css_background.asp

if you wanna add a background, then
<th colspan="2" style="background-color:pink">Table header</th>



0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question