On 12/01/2009, at 11:37 AM, Marvin Hunkin wrote:
Sorry! We found the following errors (3)
URI : file://localhost/C:\DOCS\MarvinsWebsite\styles.css
6 div header Lexical error at line 5, column 2. Encountered:
"i" (105),
after : "<" id="Borg; width: 400px; margin: 1% auto;"> }
OK, you haven't quite picked up how CSS works.
I haven't seen your actual markup (the contents of the 'view source'
of your page) but it looks like you have something like this:
<div id="Borg; width: 400px; margin: 1% auto;">
...
</div>
where you want to have:
<div id="Borg">
...
</div>
and in your .css file (or inside your <style type="text/css"> ... </
style> element) put:
#Borg {
width: 400px;
margin: 1% auto;
}
if you want to have a 'Borg' type block appear more than once, you
should use a 'class' rather than an 'id' - an 'id' should only appear
once on the page while a 'class' is for repeating blocks.
This would give markup like this:
<div class="Borg">
...
</div>
and the class would be referenced in the CSS with 'dot' notation:
.Borg {
width: 400px;
margin: 1% auto;
}
Hope it helps
Lea
--
Lea de Groot
Elysian Systems
Brisbane, .au
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************