bazz
02-03-2005, 05:34 PM
Hope I have got the grasp of id and class but perhaps not.
This section of code displays in IE^ on XP nearly as intneded. The boreder around the div id=menu doesn't extend below the items of the menu. I would ask you for help with that. Also, when viewed in FF, most of the style elements are ignored. PLz help me understand why this might be.
here's the html
<div id="menu">
<div id="table">
<h1> Table d'Hôte Menu</h1>
<div class="meallayout">
<div class="titlediv"><p class="title"> <a class="textlink" href="/cgi-bin/pier36/Tester_Menu/publicdetail.pl/path=Tabledhote&action=View&base=item1"> Monkfish </a> </p></div>
<div class="pricediv"> £15.00 </div>
<div class="summarydiv"> Monkfish saltimbocca on lime risotto with macedoine of beetroot & rocket burre blanc </div>
</div>
Her's the css
body {
text-align : center;
}
div#menu {
padding : 10px;
margin : 10px;}
div#table {
margin : auto auto;
text-align : center;
background-color : transparent;
border : 1px solid #d2d2d2;
padding : 0 4%;
font-size : 1em;
}
#table h1 {
font-family : "Old English Text MT", verdana, sans-serif, helvetica;
font-weight : bold;
color : #000000;
padding-bottom : 20px;
}
#table .meallayout {
text-align : center;
margin : auto auto;
}
#table .meallayout .titlediv {
float : left;
background-color : #000000;
width : 80%;
padding : 10px 0;
}
#table .meallayout .titlediv .p {
font-family : "Trebuchet ms", verdana, sans-serif, arial, helvetica;
background-color : transparent;
text-align : center;
color : #fffffff;
padding : 0 20px;
font-size : 1em;
}
#table .meallayout .summarydiv {
float : left;
width : 80%;
clear : both;
padding : 10px 0;
background-color : #ffff80;
}
#table .meallayout .summarydiv p {
font-weight : bold;
}
#table .meallayout .pricediv {
float : right;
top : 0px;
width : 17%;
height : 25px;
background-color : #ff8080;
padding : 10px 0;
}
#table .meallayout .pricediv p {
font-weight : bold;
}
*/#table td a:link, a:visited, a:active, a:hover {
font-family : "Trebuchet ms", verdana, sans-serif, arial, helvetica;
font-weight : bold;
text-decoration : none;
color : #977F78;
background-color : transparent;
font-size : 1em;
}
#table td a:hover {
color : #BD75A0;
background-color : transparent;
}
#table td hr {
color: #004040;
}
Bazz
This section of code displays in IE^ on XP nearly as intneded. The boreder around the div id=menu doesn't extend below the items of the menu. I would ask you for help with that. Also, when viewed in FF, most of the style elements are ignored. PLz help me understand why this might be.
here's the html
<div id="menu">
<div id="table">
<h1> Table d'Hôte Menu</h1>
<div class="meallayout">
<div class="titlediv"><p class="title"> <a class="textlink" href="/cgi-bin/pier36/Tester_Menu/publicdetail.pl/path=Tabledhote&action=View&base=item1"> Monkfish </a> </p></div>
<div class="pricediv"> £15.00 </div>
<div class="summarydiv"> Monkfish saltimbocca on lime risotto with macedoine of beetroot & rocket burre blanc </div>
</div>
Her's the css
body {
text-align : center;
}
div#menu {
padding : 10px;
margin : 10px;}
div#table {
margin : auto auto;
text-align : center;
background-color : transparent;
border : 1px solid #d2d2d2;
padding : 0 4%;
font-size : 1em;
}
#table h1 {
font-family : "Old English Text MT", verdana, sans-serif, helvetica;
font-weight : bold;
color : #000000;
padding-bottom : 20px;
}
#table .meallayout {
text-align : center;
margin : auto auto;
}
#table .meallayout .titlediv {
float : left;
background-color : #000000;
width : 80%;
padding : 10px 0;
}
#table .meallayout .titlediv .p {
font-family : "Trebuchet ms", verdana, sans-serif, arial, helvetica;
background-color : transparent;
text-align : center;
color : #fffffff;
padding : 0 20px;
font-size : 1em;
}
#table .meallayout .summarydiv {
float : left;
width : 80%;
clear : both;
padding : 10px 0;
background-color : #ffff80;
}
#table .meallayout .summarydiv p {
font-weight : bold;
}
#table .meallayout .pricediv {
float : right;
top : 0px;
width : 17%;
height : 25px;
background-color : #ff8080;
padding : 10px 0;
}
#table .meallayout .pricediv p {
font-weight : bold;
}
*/#table td a:link, a:visited, a:active, a:hover {
font-family : "Trebuchet ms", verdana, sans-serif, arial, helvetica;
font-weight : bold;
text-decoration : none;
color : #977F78;
background-color : transparent;
font-size : 1em;
}
#table td a:hover {
color : #BD75A0;
background-color : transparent;
}
#table td hr {
color: #004040;
}
Bazz