Jump to content
  • 0

Проблема с атрибутом id


Ergonav
 Share

Question

Не могу разобраться с лого, в его расположением, не могу переместить...

Прошу помочь.

index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<html>
<head>
<title>Главная</title>
<link rel="stylesheet" type="text/css" href="style/style.css" />

</head>
<body>
<div id="logo"></div>

<a href="/"><img src="images/logo.gif" alt=""></a>


<div id="info">


<h1>Главная страница</h1>

<p>Привет дорогой друг, ля ля ля. <br>
Opera поддерживает максимум 6–9 параметров тени. Повышение этого значения, а также увеличение радиуса размытия свыше 100px сказывается на производительности браузера. Opera версии 9.5–10 использует отображение нескольких теней, как в CSS2.

Safari до версии 4.0 поддерживает только один параметр тени, остальные игнорируются. С версии 4.0 работает уже множество теней.</p>



</body>
</html>

style.css

body { 
background-color: white;
}

#logo {
background-image: url (images/logo.gif);
background-position: top right;

}



h1 {
font-family: lobster two, cursive;
font-size: 50px;
font-style: italic;
text-shadow: 2px 2px #adadad;
text-align: center;
}

Мб каких-то стилей не хватает, пробую через background-position, не получается...не перемещается..

Edited by Ergonav
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Ergonav,

Какое именно лого?

У тебя одно в стилях прописано, второе через <img>.

То что в стилях - с ошибкой. Между url и скобкой пробела быть не должно.

Картинки не отображались... я так и сяк.. проблема была в том что я писал

#header { 
background-image: url(images/logo.jpg);
margin: 0 auto;
width: 604px;
height: 300px;
margin: 0 auto;
}

А надо было

#header { 
background-image: url(..images/logo.jpg);
margin: 0 auto;
width: 604px;
height: 300px;
margin: 0 auto;
}

Edited by Ergonav
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy