CSS style é
- Started
- Last post
- 7 Responses
- Atkinson
I have some sections I'm styling like this:
ul#info {
background: #FAF8CC;
padding: 5px;
}This works fine.
However, one of my sections contains é, e acute. I'm trying to style the section with:ul#café_royal_books {
background: #AFC7C7;
padding: 5px;
}I have also tried the code using the HTML for é
but it's not working. As far as I can tell it must be the e acute causing the problem. Is there a way around this?
Thanks
http://www.craigatkinson.co.uk
The bits are the menu on the left
- uan0
I don't know if this works for definitions, but if you are using special chars, you should declare utf8 in css and in the html.
css:
@charset "utf-8";
html:
meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
- Stugoo0
can you target the parent ? or give it a class via js.... not idea but at least you get your finger in the dyke/
- georgesIII0
make it short,
simplify your life,
-
ul#crb {
background: #AFC7C7;
padding: 5px;
}
- orrinward0
KIf this ID titles it? Make a child div inside it that does all the css work, or declare it as a class with no fancy characters?