html - Designing pages with CSS disabled -


I am preparing a site that uses a dark background, and is just out of interest, I CSS disabled on this Because it has been marked educationally, without styles it is still a consistent document, except that my title images are white, and because the default background color is also white, you can not see the titles at all. (The headings are marked as h1 / h2 / h3 and then javascript changes them with images).

Now I know that this is a small matter of users who do not have CSS but JavaScript, so it's a lot more theoretical rather than a practical question, but I want to set up background colors Should go back in the old and the old way:

<333333> & gt; ;

.. so that you can still see the white images?

I usually include the header through CSS.

  & lt; H2 class = "my-heading" & gt; & Lt; Span class = "hide" & gt; My title & lt; / Span & gt; & Lt; / H2 & gt;  

and then

 . My-title {width: 100px; Height: 24px; Display area; Background: #fff url (image / my-heading.jpg) Any repetitive upper left; }. Skip {display: none; }  

so that no-CSS environment users have text version one.

EDIT: Thank you for providing a better option to do this (Text Indent: -9999px;) and to indicate missing stuff (my bad) See the comments section.

Edit 2: Thank you. I assure you to check again the next time;)


Comments