![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 70 Pomógł: 0 Dołączył: 10.07.2013 Ostrzeżenie: (0%) ![]() ![]() |
Witam mam problem, chciałbym aby tylko obrazek miał zmniejszone krycie natomiast napis również dziedziczy zmniejszone krycie.
Kod .img-height { position: static; display: block; } .img-height:hover { background-color: #fff; opacity: 0.4; padding: 0; margin:0; } .img-container { display: table; width: 100%; height: 100%; padding-top: 10px; padding-bottom: 10px; } .img-text:hover h1 { color: #000; display: inline; display: table-cell; vertical-align: middle; text-transform: uppercase; } .img-8 { background: url(../images/img-8.jpg) no-repeat center center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; height: 400px; } .img-9 { background: url(../images/img-9.jpg) no-repeat center center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; height: 400px; } .img-10 { background: url(../images/img-10.jpg) no-repeat center center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; height: 400px; } .img-text h1{ display:none; } html
mam to (IMG:http://wstaw.org/m/2016/08/10/Bez_nazwy-2.jpg) chce to (IMG:http://wstaw.org/m/2016/08/10/Bez_nazwy-1.jpg) |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 243 Pomógł: 20 Dołączył: 20.04.2004 Skąd: Wielkopolska Ostrzeżenie: (0%) ![]() ![]() |
Zobacz jak to jest rozwiązane na przykład tutaj - struktura HTML-a i które elementy mają opacity.
https://www.impressivewebs.com/demo-files/css-opacity/ |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 6 806 Pomógł: 1828 Dołączył: 11.03.2014 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 16:30 |