Jump to content
Stef's Coding Community
cowboyandy

Can't figure out the parse error

Recommended Posts

Thanks to this forum, I'm getting better at utilizing css...or at least think I am! I redid some of it, then tried validating, and I keep getting this on validation:

 

Value Error : list-style-image Parse Error :(http://www.renttexashillcountry.com/siteimages/smalltxflagnav.jpg'>http://www.renttexashillcountry.com/siteimages/smalltxflagnav.jpg)

 

I know this is something simple, but I just can't figure it out. It's the only error on validation, so I'm happy with that - but sure would like to know how this line in my css is incorrect:

 

list-style-image:(http://www.renttexashillcountry.com/siteimages/smalltxflagnav.jpg);

 

As usual, your help is greatly appreciated - especially by us novices!

 

Have a great day, and God bless!

Edited by cowboyandy

Share this post


Link to post
Share on other sites

I believe you are missing the "url" portion: http://www.w3schools.com/cssref/pr_list-style-image.asp

 

For example:

 

ul

{

list-style-image:url('icon.gif');

}

 

Yuppers! Here's the change:

 

list-style-image:url (http://www.renttexashillcountry.com/siteimages/smalltxflagnav.jpg'>http://www.renttexashillcountry.com/siteimages/smalltxflagnav.jpg);

 

Now three errors:

 

Value Error : list-style-image url is not a list-style-image value : url

Parse Error (http://www.renttexashillcountry.com/siteimages/smalltxflagnav.jpg);

Parse Error [:#000000; vertical-align:middle; text-align:left; } /*--content--*/ #propdetails] Have no idea why this one appears with the above change!

 

Any ideas?

Share this post


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.

Guest
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.

Loading...

×
×
  • Create New...