473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

style lost when html placed in td tags.

Hi

mixed html & css

i want to use the following code inside the table tags <td></td>

html code

<div class="menu-subs">
<div class="menuheader-subs"><h1>:: Subscriber sections</h1></div>
<a href="javascript:;">:: A section here</a>
<a href="javascript:;">:: Another here</a>
<a href="javascript:;">:: A different section here</a>
<a href="javascript:;">:: A section here</a>
<a href="javascript:;">:: Another here</a>
<a href="javascript:;">:: A different section here</a>
<a href="javascript:;">:: A section here</a>
<a href="javascript:;">:: Another here</a>
<a href="javascript:;">:: A different section here</a>
</div>

style sheet code

..menu-subs{
background-image:url(images/menu_bg-subs.gif);
background-repeat:repeat-x;
width:170px;
}

..menuheader-subs{
background:#296093;
background-image:url(images/headerbar-subs.gif);
background-repeat:repeat-x;
width:170px;
overflow:hidden;
}
..menuheader-subs h1{
background-image:url(images/headerbar-subs-corners.gif);
background-repeat:no-repeat;
padding:2px 0 2px 5px;
margin:0;
color:#FFF;
font-weight:bold;
font-size:100%;
}
..menu-subs a{
display:block;
padding:2px 0 2px 5px;
border-bottom: 1px solid #6AA2C4;
text-decoration:none;
font-size:90%;
color:#333;
}
..menu-subs a:hover, .menu-subs a:visited:hover{
background:#D0E2EC;
}

example url

http://www.mds.cc/styletest.html

Mark

Feb 2 '06 #1
1 1207
"Obantec Support" <us****@NOSPAM.obantec.net> wrote:
mixed html & css
If it's a CSS question, it does not belong here.
<a href="javascript:;">:: A section here</a>


Stop right there. Now start from the original problem. What is it?
The above is simply wrong. And I don't mean just the childish "::".

You haven't even described what you see as a problem. You just threw
some code at us. If your problem is the change of rendering when
putting something in a table cell, as you suggest in the Subject line
(only!), consider whether you understand the default styling of cells
and whether you really need to put something into a table cell.

Besides, do your homework before asking others to help you. Use
available tools to check at least the syntax of your HTML and CSS code.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Feb 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: chotiwallah | last post by:
i have a little database driven content managment system. people can load up html-docs. some of them use ms word as their html-editor, which resultes in loads of "class" and "style" attributes -...
13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
8
by: Hostile17 | last post by:
Consider the following HTML. ---------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <meta...
18
by: Randall Sell | last post by:
http://www.bytewise.com.au/test/iebug.html I can not see why this doesn't work under IE6. Perhaps someone can shed some light on this, and a possible hack to get it to work. My ultimate goal is...
8
by: Xah Lee | last post by:
what does it mean when a style tag gives something like the following? <style type="text/css" media="screen,projection">/*<!]>*/</style> is this standard? Xah xah@xahlee.org ∑...
2
by: Brian Bischof | last post by:
To get my formatting to work with Firefox and IE browsers, I have to be very careful about the layout. So I'm removing all the Style tags that set the Height and Width values (and some of these...
1
by: Amanda H. | last post by:
I posted about this a few days ago, and I got a few suggestions that fixed part of my problem. I am using a PHP script to switch external style sheets when the viewer clicks on the style link. ...
2
by: ameshkin | last post by:
This script I wrote works with tables, td's and div's, but not with style tags. Can anyone figure out the regular expression for finding <styletags. The trick is that sometimes its not just...
1
by: Max Power | last post by:
HTML reprocessor: how do you get rid of the obese MS-Word (normal or filtered) HTML? I just want all the fancy MS tags removed and replaced with basic ones, or if applicable -- stripped entirely...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.