Jump to content
Killersites Forums

vertical menu with external css-help

Recommended Posts

You have several errors if you check here:-


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"
<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 by Wickham
Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...