html - cant set css stylesheet height, width on div from stylesheet -


update: figured out happening. hosts (ipage.com) has type of caching after update css , clear cache show old 1 long time. if web search "ipage css refresh" can read more it.

resolved: when put www.domain.com shows old stylesheet had that's not on host anymore. domain.com works fine. don't know why i'm looking it. thank help.

i can't seem set height , width of div. if put style inside tag works, style-sheet doesn't. thanks.


<html>     <head>         <meta charset="utf-8">         <link rel="stylesheet" type="text/css" href="/stylesheet1.css">         <title>website</title>     </head>     <body>         <div id="menu" >             <b>item1</b>             <br>             <b>item2</b>         </div>     </body> </html> 

the css is:

#menu {     display          : inline-block;     background-color : blue;     height           : 200px;     width            : 100px; } 

just guess: stylesheet reside inside root folder of domain, or in sub-directory? /stylesheet1.css absolute path... leading slash indicates root folder. maybe meant stylesheet1.css, refers file in same folder html page?


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -