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
iframe scrolling problem

 
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
corporate



Joined: 13 Dec 2005
Posts: 61

PostPosted: 23.03.2006 23:05    Post subject: iframe scrolling problem Add user to your forum ignore list Reply with quote

Kako da podesim iframe da se rasteze ovisno o duljini sadrzaja koji prikazuje? Zelio bih izbjeći vertikalne scroll barove samog iframe i koristiti samo one od browsera. Stavio sam kao atribute fiksni width a height na 100%, iframe se nalazi unutar diva, ali stvar ne funkcionira.

IDa li postoji neki drugi način da to riješim?

Želio bih u biti imati fiksni dio stranice... logo i navigaciju i jedan dio u kojem se mijenja sadržaj navigacijom, nešto kao frameset.

Uzmite u obzir da sam početnik, hvala.
Back to top
View user's profile Send private message
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

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

pa onda koristi frameset?

možda da probaš u CSS ubaciti
Code:
iframe {height: auto;}
mada mi se čini predobro da bi bilo istinito Smile

ako baš želiš iframe, ovdje su neki javascript-i:
http://www.devpapers.com/article/200
http://www.webmasterworld.com/forum21/7779.htm
Back to top
View user's profile Send private message Visit poster's website Twitter profile
nikola_hr



Joined: 24 Mar 2006
Posts: 13
Location: Croatia / Cakovec

PostPosted: 24.03.2006 09:54    Post subject: Add user to your forum ignore list Reply with quote

stavi to sto scrollas u div i ako zelis fiksnu visinu stavi divu height i overflow: auto: imat ces scroller na divu ali bez iframe, znam da zelis samo scroller od browsera, ali ovako ti je najednostavnije ... ili iframe rastezes pomocu javascripta...


<div id="vanjski" style="height: 500px; overflow: auto;">
<div id="content">Lorem ipsum dolor sit amet ....</div>
</div>

i ne treba ti onda iframe ... a ima na netu malo proguglaj ... moze se CSS rijesiti i da scrollas samo scroller od browsera ... a da imas ono sto tebi treba fiksni, header ... itd.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
corporate



Joined: 13 Dec 2005
Posts: 61

PostPosted: 24.03.2006 12:27    Post subject: Add user to your forum ignore list Reply with quote

Hvala na savjetima. Ona skrpta radi kako treba, ali cu se potrudit da to rijesim css-om ako je moguce, ako ne i js ce biti ok.
Back to top
View user's profile Send private message
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