Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
I feel like a right thicko but....
Old 11-29-2010, 10:59 AM I feel like a right thicko but....
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
'scuse the post - it appears someone has logged into my brain and erased part of the hard drive that contains my thoughts / logic etc... been having one of those days battling with such a simple thing - or it should be anyway - and the harder i try to resolve this the further away the answer is.

Its probabally something stupid im doing /missing - but can somebody tell me why i cant get the following code to work. Basically its a cocktail menu - i need 2 columns and the name of the cocktails in one block and others in the other - trouble is - i cant seem to get the span to take on the styling at all no matter what i do - the code is below - basically it should list cocktail types - cocktails in the cat and maybe the price to the right - i might have to split them up more logically into groups but this is proving harder than i thought now that my braincells seem to have leaked out of my ear when ive been asleep.
As i said i want the name of the cocktail to be in Georgia, Times New Roman bold - but it wont have it. No Way Jose......

Code:
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test for cocktail menus</title>
<style type="text/css"> 
.cocktail {background:#CCC; width: 250px; margin: 0 20px; float:left; font-family:Arial, Helvetica, sans-serif; font-size:12px; padding: 5px;}
.cocktail h5 {font-family:Arial, Helvetica, sans-serif; font-size: 12px; padding-left: 0px; color:#C60;}.
span.title {font-family: Georgia, "Times New Roman", Times, serif; font-size: 12px; font-weight:bold;}
hr {}
</style>
</head>
 
<body>
<div class="cocktail">
<hr />
<h5>Classics</h5>
<span style="title">Cosmo</span><br />
citrus vodka, triple sec, cranberry juice, limes
 
<p><span class="title">Strawberry Mule</span><br />
vodka, strawberry liqueur, limes, ginger beer</p>
 
<p><span class="title">Sea Breeze</span><br />
vodka, grapefruit juice, cranberry juice, limes</p>
 
<p><span class="title">Caipirinha</span><br />
cachaça, limes, sugar</p>
 
<p><span class="title">Margarita</span><br />
tequila, triple sec, lemons, limes</p>
<hr />
<h5>Creamies</h5>
<p><span class="title">White Russian</span><br />
citrus vodka, triple sec, cranberry juice, limes</p>
 
<p><span class="title">Mad Monk Milkshake</span><br />
frangelico, baileys, kahlúa, milk</p>
 
<p><span class="title">Mint Choc Shake</span><br />
mint liqueur, cacao brown, vodka, milk</p>
 
</div>
 
<div class="cocktail">
<hr />
<h5>Classics</h5>
<p><span class="title">Cosmo</span><br />
citrus vodka, triple sec, cranberry juice, limes</p>
 
<p><span class="title">Strawberry Mule</span><br />
vodka, strawberry liqueur, limes, ginger beer</p>
 
<p><span class="title">Sea Breeze</span><br />
vodka, grapefruit juice, cranberry juice, limes</p>
 
<p><span class="title">Caipirinha</span><br />
cachaça, limes, sugar</p>
 
<p><span class="title">Margarita</span><br />
tequila, triple sec, lemons, limes</p>
<hr />
<h5>Creamies</h5>
<p><span class="title">White Russian</span><br />
citrus vodka, triple sec, cranberry juice, limes</p>
 
<p><span class="title">Mad Monk Milkshake</span><br />
frangelico, baileys, kahlúa, milk</p>
 
<p><span class="title">Mint Choc Shake</span><br />
mint liqueur, cacao brown, vodka, milk</p>
 
</div>
 
 
</body>
__________________

Please login or register to view this content. Registration is FREE

Last edited by shonkyboy; 11-29-2010 at 11:02 AM..
shonkyboy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-29-2010, 11:08 AM Re: I feel like a right thicko but....
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
style="title" should be class="title"
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 11-29-2010, 11:09 AM Re: I feel like a right thicko but....
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
oh just noticed thats only the first line - class="title" is on all the others - so why won't it take?
__________________

Please login or register to view this content. Registration is FREE

Last edited by shonkyboy; 11-29-2010 at 11:11 AM..
shonkyboy is offline
Reply With Quote
View Public Profile
 
Old 11-29-2010, 11:18 AM Re: I feel like a right thicko but....
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
Yeah I noticed that after wards... you have a . after

.cocktail h5 {font-family:Arial, Helvetica, sans-serif; font-size: 12px; padding-left: 0px; color:#C60;}.

remove it and it'll work
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 11-29-2010, 11:40 AM Re: I feel like a right thicko but....
Mime's Avatar
Extreme Talker

Posts: 164
Name: Seb
Trades: 0
And it should be p.title not span.title because title is a span (if you see what I mean).

Also the first span isn't contained in a paragraph, which you'll want to fix as it's invalid.
Mime is offline
Reply With Quote
View Public Profile
 
Old 11-30-2010, 07:52 AM Re: I feel like a right thicko but....
shonkyboy's Avatar
Extreme Talker

Posts: 226
Name: Chris
Location: West Yorks , UK
Trades: 0
Cheers guys ill give that a go - cant believe i didnt notice that full stop !
__________________

Please login or register to view this content. Registration is FREE
shonkyboy is offline
Reply With Quote
View Public Profile
 
Old 11-30-2010, 11:21 AM Re: I feel like a right thicko but....
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
No it's not p.title. it would be p .title. There is a space between children when it's the same element it's strung together. span.title is right. span .title would be wrong.
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Reply     « Reply to I feel like a right thicko but....
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.77274 seconds with 12 queries