Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
CSS rastezanje (width: 100%, height: 100%)

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
i72852



Joined: 25 Feb 2004
Posts: 81

PostPosted: 06.03.2005 10:46    Post subject: CSS rastezanje (width: 100%, height: 100%) Add user to your forum ignore list Reply with quote

problem se javlja kad rastegne div width na 100% i onda mi je cijeli diov za 1px širi od širine prozora i pojavi se scroller... isti problem javlja se i kod height 100%... Think

e sad imam jos jedno pitanje...



kak da zanemarim ovaj div 1 kod rastezanja ovog u kojem se nalaze 2, 3 i 4??
jer se on rastegne kao da nema 1 i 5..
Brick wall
Back to top
View user's profile Send private message Visit poster's website
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 06.03.2005 11:23    Post subject: Add user to your forum ignore list Reply with quote

Može biti svašta—HTML/CSS kod bi doista pomogao riješavanju misterije. Problem sa scrollom je vjerovatno zbog bordera na 100%-tnim divisionima (100% + 1px). Dio o zanemarivanju nisam uopće skužio.

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
i72852



Joined: 25 Feb 2004
Posts: 81

PostPosted: 06.03.2005 13:50    Post subject: Add user to your forum ignore list Reply with quote

evo kod za 1.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
   <style>
      html,body {
         font-family: Tahoma, Verdana, Arial;
         font-size: 11px;
         font-style: normal;
         line-height: normal;
         font-weight: normal;
         width: 100%;
         margin-right: auto;
         margin-left: auto;
         height: 100%;
         margin-top: auto;
         margin-bottom: auto;
      }
      #main {
         font-family: Tahoma, Verdana, Arial;
         font-size: 11px;
         font-style: normal;
         line-height: normal;
         font-weight: normal;
         text-decoration: none;
         margin: auto;
         width: 100%;
         border: 1px solid #000000;
         height: 100%;
      }
   </style>
</head>
<body>
   <div id="main">text</div>
</body>
</html>



e 2.
kad stavim za div koji sadrži 2, 3 i 4 height: 100% on se razvuce na sirinu kao da nema 1 i 5...
znaci kad bi maknuo 1 i 5 on bi bio za 1 px predugi...
Back to top
View user's profile Send private message Visit poster's website
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 06.03.2005 14:02    Post subject: Add user to your forum ignore list Reply with quote

U box modelu vrijednosti se zbrajaju. Npr. 100% + 1px je jedan pixel šire od sto posto širine viewporta.

_________________
Get busy living, or get busy dying.
Back to top
View user's profile Send private message Visit poster's website Twitter profile
i72852



Joined: 25 Feb 2004
Posts: 81

PostPosted: 06.03.2005 14:17    Post subject: Add user to your forum ignore list Reply with quote

ok 1.sam rješio... bili su boredri na 1 pa zato pojavio scroller..
e sad jos drugo... evo kod:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
   <style>
      html,body {
         font-family: Tahoma, Verdana, Arial;
         font-size: 11px;
         font-style: normal;
         line-height: normal;
         font-weight: normal;
         width: 100%;
         margin-right: auto;
         margin-left: auto;
         height: 100%;
         margin-top: auto;
         margin-bottom: auto;
      }
      #main {
         font-family: Tahoma, Verdana, Arial;
         font-size: 11px;
         font-style: normal;
         line-height: normal;
         font-weight: normal;
         text-decoration: none;
         margin: auto;
         width: 100%;
         border: 0px solid #000000;
         height: 100%;
         background-color: #00FFFF;
      }
      #text {
         font-family: Tahoma, Verdana, Arial;
         font-size: 11px;
         font-style: normal;
         line-height: normal;
         font-weight: normal;
         text-decoration: none;
         margin: auto;
         width: 100%;
         border: 0px solid #000000;
         height: 100%;
         background-color: #3399FF;
      }
   </style>
</head>
<body>
   <div id="main">text<br />
     <div id="text">text2</div>
   </div>
</body>
</html>


obadva diva su jednako dugi... i text i main... iako u main-u na pocetku ima tekst... i onda se pojavi scroller... kak to izbjeci??
Back to top
View user's profile Send private message Visit poster's website
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 06.03.2005 14:51    Post subject: Add user to your forum ignore list Reply with quote

Po defaultu je <div> širok onoliko koliko je širok parent element, znači nepotrebno ti je width: 100%;

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
i72852



Joined: 25 Feb 2004
Posts: 81

PostPosted: 06.03.2005 19:12    Post subject: Add user to your forum ignore list Reply with quote

maratz wrote:
Po defaultu je <div> širok onoliko koliko je širok parent element, znači nepotrebno ti je width: 100%;


ok, thx...
a znas moozda kak rjesit ovo drugo?? ubija me... Crying or Very sad
Back to top
View user's profile Send private message Visit poster's website
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 06.03.2005 19:53    Post subject: Add user to your forum ignore list Reply with quote

Not sure what you need. Kako ćeš oba height = 100% Confused

_________________
Get busy living, or get busy dying.
Back to top
View user's profile Send private message Visit poster's website Twitter profile
i72852



Joined: 25 Feb 2004
Posts: 81

PostPosted: 06.03.2005 23:21    Post subject: Add user to your forum ignore list Reply with quote

a kako onda rastegnuti 2, 3 i 4 od 1 do 5... Neutral
1 mora biti na vrhu, a 5 na dnu...
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 07.03.2005 02:29    Post subject: Add user to your forum ignore list Reply with quote

ah, stari dobri header+footer zahtijevi ljudi koji su navikli na tablice Smile

"ali ja bi da mi je footer uvijek na dnu" -- ovo čujem kod svakog tko želi napraviti layout u css-u

gle, neka ti footer dođe tamo gdje završi nakon sadržaja (normal flow) -- zašto bi uopće htio da se rastegne do kraja (osim zato što si to redovito vidio kod tablica)?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
burne



Joined: 11 Jan 2004
Posts: 602
Location: Split

PostPosted: 07.03.2005 09:16    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
ah, stari dobri header+footer zahtijevi ljudi koji su navikli na tablice Smile

"ali ja bi da mi je footer uvijek na dnu" -- ovo čujem kod svakog tko želi napraviti layout u css-u

gle, neka ti footer dođe tamo gdje završi nakon sadržaja (normal flow) -- zašto bi uopće htio da se rastegne do kraja (osim zato što si to redovito vidio kod tablica)?


Agreed, odavna odustah od ovog problema. Ima rjesenja za footer. Ali jos nisu crossbrowsani i ukljucuju quite a number of jscripte.
Poz

P.S. Jebeni forum i njegov auto ignore. Umjesto citata sad je Sulien na ignore fuckin listi, i jos mi kaze da je eror u databejzu i da ga ne moze izbrisati! VOTDAFAK! Pa njega zadnjeg zelin ignorati! Grrrrrr. Valjda bi tu negdi triba biti dialog - do you want to add him ili nesto slicno???

_________________
http://www.vidosh.com - moj folio, v2.0 reborn | http://www.damirphoto.net - ćaćine fotke
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 07.03.2005 11:29    Post subject: Add user to your forum ignore list Reply with quote

Dodan i confirm dialog na ignore. happy now? Smile
Back to top
View user's profile Send private message Visit poster's website Twitter profile
burne



Joined: 11 Jan 2004
Posts: 602
Location: Split

PostPosted: 07.03.2005 11:34    Post subject: Add user to your forum ignore list Reply with quote

Da hepi Laughing
cuj, kazu da su negdi ljudi morali ubit nekoliko ljudi da bi osnovali groblje... i ja moro ko debil falit botun (a stas, nisam se navika dignit tako rano i replyat)...

_________________
http://www.vidosh.com - moj folio, v2.0 reborn | http://www.damirphoto.net - ćaćine fotke
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
i72852



Joined: 25 Feb 2004
Posts: 81

PostPosted: 07.03.2005 20:56    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
ah, stari dobri header+footer zahtijevi ljudi koji su navikli na tablice Smile

"ali ja bi da mi je footer uvijek na dnu" -- ovo čujem kod svakog tko želi napraviti layout u css-u

gle, neka ti footer dođe tamo gdje završi nakon sadržaja (normal flow) -- zašto bi uopće htio da se rastegne do kraja (osim zato što si to redovito vidio kod tablica)?


a kaj bus... Wink
ok... znaci ostavim do kud je je... super...
hvala...

pozdrav...
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 08.03.2005 12:19    Post subject: Add user to your forum ignore list Reply with quote

hmm vidim da burne nesto puno piše al ne vidim šta

Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 09.03.2005 20:36    Post subject: Add user to your forum ignore list Reply with quote

burne wrote:
Agreed, odavna odustah od ovog problema. Ima rjesenja za footer. Ali jos nisu crossbrowsani i ukljucuju quite a number of jscripte.


nije istina, sve elemente (html, body) stavis na 100% height, i igras se s negativnim marginama...nemogu ti sad tocno rec napamet kako, znam da sam to doma napravio i da radi u sva 3 brozera (IE 6, Opera, Firefox)

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 09.03.2005 21:22    Post subject: Add user to your forum ignore list Reply with quote

carr wrote:
...znam da sam to doma napravio i da radi u sva 3 brozera (IE 6, Opera, Firefox)

heh... IE/Mac? Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 10.03.2005 19:09    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
heh... IE/Mac? Smile


moje CSS znanje nije jos na toj razini Smile
s cim da to testiram, ima neki emulator ili nesto?

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 10.03.2005 19:19    Post subject: Add user to your forum ignore list Reply with quote

carr wrote:
Sulien wrote:
heh... IE/Mac? Smile


moje CSS znanje nije jos na toj razini Smile
s cim da to testiram, ima neki emulator ili nesto?


http://www.danvine.com/icapture/

_________________
Get busy living, or get busy dying.
Back to top
View user's profile Send private message Visit poster's website Twitter profile
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 10.03.2005 19:30    Post subject: Add user to your forum ignore list Reply with quote

red wrote:
http://www.danvine.com/icapture/


thx, ne sljaka trenutno, ubijen je malo, al probat cu.

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 10.03.2005 20:24    Post subject: Add user to your forum ignore list Reply with quote

Sto ne radi iCapture samo Safari 1.1 ili Safari 1.2 screenshote?
Back to top
View user's profile Send private message Visit poster's website Twitter profile
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 10.03.2005 20:29    Post subject: Add user to your forum ignore list Reply with quote

zytzagoo wrote:
Sto ne radi iCapture samo Safari 1.1 ili Safari 1.2 screenshote?


Jea, my bad. Nisam ni pročitao prijašnje postove kak spada.

_________________
Get busy living, or get busy dying.
Back to top
View user's profile Send private message Visit poster's website Twitter profile
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 11.03.2005 20:26    Post subject: Add user to your forum ignore list Reply with quote

zytzagoo wrote:
Sto ne radi iCapture samo Safari 1.1 ili Safari 1.2 screenshote?

sta ti koristis, imas kakvo rjesenje (a da nije da kupim maca)?

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 11.03.2005 20:56    Post subject: Add user to your forum ignore list Reply with quote

noup Sad

EDIT: ima onaj servis http://www.browsercam.com/ , ali kod njih se to placa, i nisam koristio, tako da ne znam jel valja... Doduse, ima free trial neki, mozda ti to moze posluziti (again, nisam probao pa ne znam for sure)
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group