Jump to content
  • 0

Почему-то не назначают стили для label.class или label#id


adelante
 Share

Question

Вот такая структура:

<label class="1star"><input type="radio" name="var1" value="1" /></label>

CSS:

label.1star {
background: url('images/1star.png') no-repeat;
width: 21px;
height: 19px;
display: block;
}

.1star input {
position: absolute;
left: -999px;
}

Открываю страницу -- 0 эффекта. Открываю label в firebug -- никаких стилей не назначено. Назначаю вручную элементу в файрбаге -- включаются.

если сделать <label style="стили">...</label> -- работает. По логике -- неправильно назначены стили (указаны имена классов/элементов в файле со стилями), но вроде бы всё правильно...

Не понимаю.

Есть идеи?

Edited by adelante
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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