Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] Div w Divie, pozycjonowanie
Derwu
post
Post #1





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 2.11.2003

Ostrzeżenie: (10%)
X----


Witam,

Mam dwa div'y. Jeden jest większy. a drugi mniejszy. Mniejszy div zawiera się w większym. Duży div wypełniony jest tekstem, a mały div ma tylko obrazek jako tło (ten div to dekoracja pola tekstowego). Chciałbym aby mały div znajdował się w prawym dolnym rogu większego div'a i jednocześnie za tekstem.

Proszę o jakąś solucję, bo nic działającego nie znalazłem.

Pozdrawiam.

Ten post edytował Derwu 8.07.2009, 01:31:56
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
sebekzosw
post
Post #2





Grupa: Zarejestrowani
Postów: 437
Pomógł: 42
Dołączył: 16.04.2007

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


O takie coś chodzi??:

  1. <style type="text/css">
  2. #maly {
  3. position: absolute;
  4. width:230px;
  5. height:79px;
  6. background:url(http://forum.php.pl/style_images/1/logo4.gif) no-repeat;
  7. right: 0%;
  8. }
  9. </style>
  10.  
  11. <div id="duzy">
  12. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sit amet nisi arcu, ut fringilla justo. Nulla porta euismod scelerisque. Aliquam erat volutpat. Nullam vitae turpis vitae elit posuere hendrerit. Donec consectetur quam eget nulla gravida in tristique arcu imperdiet. Ut elit massa, ultricies sed tempor non, mollis nec diam. Ut enim nibh, lacinia non interdum ut, rhoncus in lacus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec pretium congue ultrices. Etiam hendrerit molestie sem ut feugiat. Donec ut ipsum nec lacus faucibus ultricies. Nam ullamcorper ornare sem quis scelerisque. Fusce ut tortor id ligula placerat pharetra nec eget elit. Nulla consequat mi est, at cursus ipsum. Nam commodo mauris id sapien vestibulum feugiat consectetur tellus tempus. Nam sed orci quis est vestibulum placerat vel interdum enim. Suspendisse velit neque, feugiat id ornare nec, fermentum et risus. Vestibulum non dui augue, sit amet semper nisi. Nullam rhoncus pretium mi, vitae fermentum mi facilisis sit amet.
  13. <div id="maly"></div>
  14. </div>


Ten post edytował sebekzosw 8.07.2009, 03:18:25
Go to the top of the page
+Quote Post
athei
post
Post #3





Grupa: Zarejestrowani
Postów: 389
Pomógł: 141
Dołączył: 11.04.2009

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


Chyba raczej chodzi o to:
  1. #maly {
  2. position: absolute;
  3. width:230px;
  4. height:79px;
  5. background:url(http://forum.php.pl/style_images/1/logo4.gif) no-repeat;
  6. bottom: 0%;
  7. right: 0%;
  8. z-index:-1;
  9. }
  10. #duzy {
  11. position: relative;
  12. z-index:0;
  13. }
Go to the top of the page
+Quote Post
sebekzosw
post
Post #4





Grupa: Zarejestrowani
Postów: 437
Pomógł: 42
Dołączył: 16.04.2007

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


to
  1. z-index:0;
moim zdaniem nie jest potrzebne (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) ;>
Go to the top of the page
+Quote Post
Derwu
post
Post #5





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 2.11.2003

Ostrzeżenie: (10%)
X----


athei dzięki.

Dokładnie takie jest rozwiązanie.
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 23.08.2025 - 10:00