Solved

new to html

Posted on 2011-03-01
2
132 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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now