Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Whats wrong with my css?

Featured Replies

Hi im trying to validate my css but I keep on getting the following error..'' Parse error - Unrecognized''

 

Can anyone help? My code is..........

* {
padding:0;
margin:0;
}


body {font-family: arial, verdana, sans-serif ; margin: 20px 0px 40px 0px;}

#content {

float: right;
width: 570px;
padding: 10px 20px 10px 0px;}

#imageleftfloat img {margin: 0px 10px 4px 0px;
}



#header {
width: 796px;
height: 89px;
padding: 20px 20px 10px 30px;
background-image: url("headercrop.jpg");
background-repeat: no-repeat;
position:relative;
letter-spacing: 4px
}

h1 {
   position:absolute;
   top:35%;}


h2 {
   font-size: 120%;
padding: 10px 0px 10px 0px;
color: rgb(228,7,7);
letter-spacing: 1px
}



p {padding: 10px 0px 10px 0px;
font-size: 97%;
}

}

h4 {color: rgb(20,39,180);

}




hr {
 height: 1px;

background-color: rgb(200,200,200);

border: 0;

}





#antidepressant img {margin: 0px 0px 0px 7px;}







#container {width: 800px;
margin: 0 auto;}


.class2 A:link { 
color: white;
font-family: sans-serif;
text-decoration: none;}

.class2 A:visited {text-decoration: none ; color: white;
font-family: sans-serif;}

.class2 A:active { text-decoration: none ;color: red; 
font-family: sans-serif;}

.class2 A:hover {text-decoration: none ; color: red;
font-family: sans-serif; }

Hi aj47,

 

Could you give us a link to the page with this problem so we can check out the HTML and also see the validation errors ourselves. It will help us help you :)

There is the extra brace here...

 

p {padding: 10px 0px 10px 0px;

font-size: 97%;

}

 

}

  • Author

hmm sorry its uploaded to my unversity server which you can't access outside the network. I can give you example of one of my pages though ....

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Stereisomerism and Drug Design</title>
<link rel="stylesheet" type="text/css" href="style.css">


<style type="text/css">
#sidebar {

float: left;
width: 100px;
height: 2015px;
padding: 30px 50px 10px 20px;
background-image: url("sidebar-doubled-flipped.jpg");
background-repeat: repeat-y;}

</style>
</head>






<body>

<div id="container">


<div id="header">

<h1><span style="color: white">The Chemistry of Antidepressants</span></h1>
</div>



<div id="sidebar"><hr>
<p class="class2"><a href="index.html"><b>What are Antidepressants?</b></a></p>
<p class="class2"><a href="page 2 history.html"><b>A Brief History of Antidepressants Drugs</b></a></p>
<p class="class2"><a href="page3how.html"><b>How Antidepressants Work</b></a></p>
<p class="class2"><a href="page5.html"><b>The Blood Brain Barrier </b></a></p>
<p class="class2"><a href="page6.html"><b>Stereoisomerism and Drug Design</b> </a></p>
<p class="class2"><a href="page7.html"><b>Prozac Synthesis : An Overview</b></a></p><hr>
</div>


<div id="content">

<br>

<h2>Stereisomerism and Drug Design</h2>
<hr><br>

<h4>What is Stereoisomerism?</h4>

<p>
Stereochemistry which is the study of stereoisomers is an increasingly 
important consideration in medicinal chemistry. Stereoisomers are isomeric 
molecules that have the same atom to atom binding sequences but whose atomic 
arrangements in space differ. Enantiomers, which are types of stereoisomers, 
are particularly important as though they have the same chemical and physical 
properties, their biological effects may be completely different. </p>

<p>A good example of this is the SSRI drug ‘citalopram'. Though originally sold as a racemic mixture 
it was discovered that the ‘<i>S</i>’ isomer (see right) of Citalopram had less side effects due


<img src="s-citalopram.png" width="200" height="158" alt="S Isomer of Citalopram" style="float: right" />

to its increased selectivity of serotonin reuptake inhibition and was at least
twice as potent. As a result the drug was re-released as the ‘<i>S</i>’  isomer under 
the name of ‘<b><i>Es</i></b>citalopram’ and sold at lower doses than the racemic mixture. </p>

<p>Though often beneficial, separating enantiomers from a racemic mixture or carrying out stereoselective 
synthesis can be a complicated process that is only possible for minority of molecules.
Whether or not a drug is sold as a stereoselective drug or as a racemic mixture is
dependant on many factors such as toxicity and cost effectiveness.</p><br>

<h4>Resolution and Enantioselective Synthesis </h4>

<p>One method that chemists employ to resolve enantiomers is to convert them 
to diastereoisomers. Unlike enantiomers, diastereoisomers have different 
physical chemical properties, therefore after reacting an enantiomer with a 
diastereoisomer, the isomers can be resolved by conventional methods such as 
recrystallisation or chromatography. Once these diastereoisomers have been separated 
they can be converted back to an enantiomerically pure product. </p>

<p>In neuropharmacology an example of this would be the synthesis of the SNRI
antidepressant drug ‘Duloxetine’. In this reaction (summarised below), a racemic
alcohol is dissolved in a mixture of solvents to which the (<i>S</i>) isomer of Mandelic 
acid is added. The (<i>S</i>) enantiomer of the alcohol then forms a diastereomeric salt 
with the mandelic acid and as this salt is insoluble it can then be filtered from 
the solution. Finally the free (<i>S</i>) alcohol is liberated upon deprotonisation by the 
addition of a base (NaOH).</p><br>

<img src="Duloxetine.png" width="530" height="378" alt="Duloxetine Synthesis" /><br><br><br>

<h4> Chiral Chromatography</h4>


<p>Another method to separate enantiomers is chiral chromatography. Although enantiomers 
are indistinguishable in achiral environments, in chiral environments such as the body, 
they exhibit different chemical properties. To exploit this property, in a chiral column,
achiral silica gel (SiO2) is converted into a chiral stationary phase by a reaction with a 
chiral molecule. Then when a racemic mixture is run down the column one enantiomer will 
stick better to the stationary phase and there will be separation. </p><br>

<h4> Chiral Pool Synthesis</h4>

<p>Though many drugs can be resolved, often it is more economical 
to synthesize a drug from an enantiomerically pure starting material. 
This is known as the Chiral Pool Strategy’. The chiral pool refers to a 
collection of cheap and easily obtained enatiopure starting materials such 
as amino acids and Monosaccharides. Whether or not this method is employed 
is dependant on how closely the enatiopure starting material resembles 
the desired molecule. If it is too dissimilar, then a lengthy synthesis
with poor yields is often required which can be a great cost to the manufacturer.</p>

<p> A common example used to illustrate this technique is the synthesis of the artificial sweetener 
‘Aspartame’. This is synthesised via (<i>S</i>)-phenylalanine and (<i>S</i>)-aspartic acid which are both amino 
acids, therefore enatiopure.  See below.</p>


<img src="Aspartame.gif" width="405" height="336" alt="Aspartame Synthesis" />







































<br>
<br>

<span style="font-size: 10pt;"><A HREF="#top">Top of Page</a>  
<br><a href="page7.html">Next Page >></a>

</span><br><br>

<hr>






<address>

<span style="font-size: 10pt;">

<br>


Author: <a href="mailto:cha07aj@shef.ac.uk">Alexander Johnson</a> (document modification date: 26 apr 2008)


</span>
</address>






</div>
</div>






</body>
</html>

  • Author

actually no worries i think it was just the extra brace..silly me. It seems to validate now. Thanks all

I've told you what the problem is...

 

'' Parse error - Unrecognized'' }

 

Look above...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.