Follow-up question for Kravimir

Posted on 2008-06-15
Last Modified: 2010-04-09
Kravimir, Thanks for the response to my question regarding how to format TWO tables in HTML pages - I have tried giving an ID as you suggested but couldn't get it to work. its probably a problem with the synatx - could you give me a brief example of the html  code and the CSS entry?

Question by:Richard_Oakman
  • 2
LVL 42

Accepted Solution

David S. earned 250 total points
ID: 21789794
I'm curious, why did you ask a new question instead of just posting a comment in the other one which is still open?

Anyway, here's an example:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">/* <![CDATA[ */
a {
  color: #03c;
  text-decoration: underline;
a:hover {
  color: #03c;
  text-decoration: none;
table td {
  padding: .3em;
  background-color: #e8e0aa;
table.alternate td {
  padding: .3em;
  background-color: #cec;
table.alternate a {
  color: #667;
  text-decoration: underline;
table.alternate a:hover {
  color: #334;
  text-decoration: none;
/* ]]> */</style>
    <td><a href="#">example link</a></td>
<table class="alternate">
    <td><a href="#">example link</a></td>

Open in new window


Author Comment

ID: 21807325
Its my ignorance of exactly how EE works - I didn't realise that the comment went back to the guy who provides the answer - which when I think about it now is a bit dull - who did I think the comment went to!

Anyway thanks for the answer.

LVL 42

Expert Comment

by:David S.
ID: 21807342

You're welcome.

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Use Mid in Html 6 21
TypeError jquery issues with site - CSS conflicts 3 25
Html using "Or" in condition 3 25
Web page design problem 3 13
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

763 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