Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> section & a & img
norbiQue
post 20.05.2013, 12:33:44
Post #1





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 11.05.2013

Ostrzeżenie: (0%)
-----


mam pewien problem jak ustawic w stylu aby cala section byla linkiem a jej wysokosc ustawiala sie od img /ktore sa raz jest wyzsze a raz nizesze/, ktora ma byc po lewej stronie a opis po jego prawej,
<section>
<a>
<h1>...</h1>
<figure><img></figure>
<p>....</p>
</a>
<section>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 6)
Damonsson
post 20.05.2013, 12:57:25
Post #2





Grupa: Zarejestrowani
Postów: 2 355
Pomógł: 533
Dołączył: 15.01.2010
Skąd: Bydgoszcz

Ostrzeżenie: (0%)
-----


Nie do końca rozumiem, ale żeby całość była linkiem, musisz danemu <a> wewnątrz elementu który ma być linkiem nadać display block i odpowiednie wymiar typu width,height: 100%.

Na upartego możesz <a> dać przed section, ale nie będzie to poprawne wg standardów.
Go to the top of the page
+Quote Post
norbiQue
post 20.05.2013, 13:03:27
Post #3





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 11.05.2013

Ostrzeżenie: (0%)
-----


i tak też zrobiłem, lecz "a" ustawia się do wysokości "section", a "section" do wysokości "p" ktore czasem konczy sie w polowie wysokosci "img"
i tu mam problem
Go to the top of the page
+Quote Post
Damonsson
post 20.05.2013, 13:06:59
Post #4





Grupa: Zarejestrowani
Postów: 2 355
Pomógł: 533
Dołączył: 15.01.2010
Skąd: Bydgoszcz

Ostrzeżenie: (0%)
-----


Pokaż online to gdzieś, nie mam wyobraźni.
Go to the top of the page
+Quote Post
norbiQue
post 20.05.2013, 13:07:27
Post #5





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 11.05.2013

Ostrzeżenie: (0%)
-----


ezakopane.pl/noclegi/pokoje_goscinne/
chodzi o liste obiektow ktora jest na srodku strony

Ten post edytował norbiQue 20.05.2013, 13:08:03
Go to the top of the page
+Quote Post
Damonsson
post 20.05.2013, 13:12:33
Post #6





Grupa: Zarejestrowani
Postów: 2 355
Pomógł: 533
Dołączył: 15.01.2010
Skąd: Bydgoszcz

Ostrzeżenie: (0%)
-----


No i jest good, tylko jeszcze dodaj do tego <a> overflow: hidden.
Go to the top of the page
+Quote Post
norbiQue
post 20.05.2013, 13:24:24
Post #7





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 11.05.2013

Ostrzeżenie: (0%)
-----


teraz jest cool,
wielkie dzieki
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 00:19