E
E
Eduards Vigulis2011-12-16 19:08:14
HTML
Eduards Vigulis, 2011-12-16 19:08:14

Lost symbol?

For hours now, I can't figure out what's going on.
image
This is the situation, I want to know why the blue block is going down.
Here is the entire code of the page.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
" www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html  xmlns = " www.w3.org /1999/xhtml"  xml: lang = "en" >
< head >
< title > Untitled Page < / title >
< meta  http-equiv = "Content-type"  content = "text/html; charset=UTF-8"  / >
< styletype  = " text/css" media = "screen" >
html, body, #navigation, #content {
margin:0;
padding:0;
}
#navigation, #content {
float: left;
height: 100%;
}
#navigation {
width: 20%;
background color: red
}
#content {
width: 80%;
background color: blue
}
< / style >
< / head >
< body >
< div  id = "navigation" >
Navigation < br  / > Here
< / div ><!-- /navigation -->
< div  id = "content" >
Content
< / div > <!-- /content -->
< / body >
< / html >

I think the cant is somewhere in the encodings, no spaces or anything in the editor is invisible.
The question is how to find this muck? notepad and my editor (intype) doesn't show it

Answer the question

In order to leave comments, you need to log in

5 answer(s)
E
Eduards Vigulis, 2011-12-16
@AIS

I solved the problem in this way: Apparently we need to change the editor. Although there were no such problems before
$string = file_get_contents($file);
if(substr($string, 0,3) == pack('CCC',0xef,0xbb,0xbf))
{
$string=substr($string, 3);
}
file_put_contents($file, $string);

M
Max, 2011-12-16
@7workers

like this for me: gyazo.com/01bd2906d0111ea3da392ea072854bce
try to copy the code directly from here :)

S
simplecode, 2011-12-16
@simplecode

you have the code in the picture != the code in the listing...
m/b is that the point?

E
Eduards Vigulis, 2011-12-16
@AIS

I post this happiness for everyone to see: dl.dropbox.com/u/10688674/Untitled%20Page.htm

V
Vitali Borovik, 2011-12-16
@WAYS

Here's what happens if you switch to 1251 pix.am/Ai7O/
In general, there is some invisible character here, probably lost when you converted the file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question