Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Follow-up question for Kravimir

Posted on 2008-06-15
3
170 Views
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?

Thanks,
Rich
0
Comment
Question by:Richard_Oakman
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
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"
   "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<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>
</head>
<body>
 
<table>
  <tr>
    <td><a href="#">example link</a></td>
    <td>cell</td>
  </tr>
</table>
 
<table class="alternate">
  <tr>
    <td><a href="#">example link</a></td>
    <td>cell</td>
  </tr>
</table>
 
</body>
</html>

Open in new window

0
 

Author Comment

by:Richard_Oakman
ID: 21807325
Kravimir,
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.

Rich
0
 
LVL 42

Expert Comment

by:David S.
ID: 21807342
Ah.

You're welcome.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Title # Comments Views Activity
HTML - Color not displaying correctly in EMAIL. 6 49
Else condition 9 23
Accessing specific element - DOM PHP HTML 8 34
GET error with Font Awesome 3 14
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

840 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