ksa,
смотри. Вот код страницы <head> <title></title> <link rel="stylesheet" type="text/css" href="css/core.css"> </head> <body> <div id="left"> </div> <div id="top"> <table style="margin: auto;"> <tr> <th><h1>Ого!</h1></th> </tr> </table> </div> <div id="right"> <table align="right"> </table> </div> </body> а вот код css div#top { background-image: url(img/bg.gif); background-repeat: repeat; margin: 0; height: 100px; } но не пашет. Работает только если css непосредственно в страницу "вшить" но это как-то не красиво.. :) |
Цитата:
<telepath-mode>в css нужно указывать пути относительно css файла</telepath-mode> |
x-yuri,
когда я говорил "вшить", я имел ввиду вот это <html> <head> <title></title> <style type="text/css"> div#top { background-image: url(img/bg.gif); background-repeat: repeat; margin: 0; height: 100px; } </style> </head> <body> <div id="left"> </div> <div id="top"> <table style="margin: auto;"> <tr> <th> <h1>Ого!</h1> </th> </tr> </table> </div> <div id="right"> </div> </body> </html> то тогда все работает как надо. А по поводу пути относительно css файла. По подробнее можно? То есть если я там указываю файл картинки, то должен писать типа background-image: url(../img/bg.gif);? |
x-yuri,
спасибо, telepath-mode сработал так как надо ;) все заработало. Появилась еще одна проблема, но это уже другая тема. |
Часовой пояс GMT +3, время: 06:31. |