katalynesku Posted June 10, 2012 Report Share Posted June 10, 2012 beginner in CSS,the html code does not drag the external css code when i open the browser,it display only html structure without css. i attached html code and css code nested list vertical list.html vertical menu 3.css Help please Quote Link to comment Share on other sites More sharing options...
Wickham Posted June 10, 2012 Report Share Posted June 10, 2012 (edited) You have several errors if you check here:- http://validator.w3.org/ and you need to save your html file and the css file as ANSI not utf-8; use File/Save As in Notepad or your text editor and you will see a box for Type which should be All files (*.*) not Text Documents (*.txt) for the html file but .txt is OK for the css file and another box for Encoding which should be ANSI not utf-8 (the meta tag in the head section with charset=utf-8" is OK). Your doctype is wrong, you have xhtml11-strict.dtd which should be xhtml1-strict.dtd and xm1ns should be xmlns small L not 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> Don't use spaces in file names, rename your files nested-list-vertical-list.html and vertical-menu-3.css and edit the stylesheet link in the html file head section to the revised filename. #menu ul in the stylesheet needs to work with a parent element with id="menu" in the html file. so you need to enclose all the ul codes in <div id="menu">... ul codes here....</div> Edited June 10, 2012 by Wickham Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.