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
problem s formama

 
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
edgar



Joined: 28 Dec 2003
Posts: 916
Location: Pred monitorom

PostPosted: 08.03.2004 22:22    Post subject: problem s formama Add user to your forum ignore list Reply with quote

- kako fiksno namjestiti veličinu elementa forme "textarea"?

css-om sam definirao class, width i height, ali izgleda da ne pali na elemente forme...

u čemu je problem?

_________________
Digital Genetics | Koote | Nuspojava
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
njava
mi3.crew


Joined: 25 Aug 2003
Posts: 624
Location: Zagreb

PostPosted: 08.03.2004 22:41    Post subject: Add user to your forum ignore list Reply with quote

pali. daj kod pa cemo vidit di je problem.
Back to top
View user's profile Send private message Visit poster's website
edgar



Joined: 28 Dec 2003
Posts: 916
Location: Pred monitorom

PostPosted: 09.03.2004 08:21    Post subject: Add user to your forum ignore list Reply with quote

here it goes...

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<html>
<body>
<form  name="form" method="post" action="do.php" class="defform">
<p><input type="text" name="textfield" class="editfield" /></p>
<p><textarea name="textarea" class="txtareafield"></textarea></p>
<p><input type="submit" name="name1" value="Send" class="button" /></p>
</form>
</body>
</html>


i .css

Code:

.txtareafield {
   font-family: Verdana;
   font-size: 11px;
   font-style: normal;
   text-transform: lowercase;
   color: #cccccc;
   text-decoration: none;
   background-color: #484848;
   font-weight: bold;
   text-align: center;
   width: 290;
   height: 190;
}
.defform {
   color: #cccccc;
   text-decoration: none;
   background-color: #484848;
   text-align: center;
}


? Confused

_________________
Digital Genetics | Koote | Nuspojava
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: 09.03.2004 09:35    Post subject: Add user to your forum ignore list Reply with quote

width i height definiraj u pixelima, ili nekoj drugoj jedinici, jer ovako bez jedinice se ne zna o cemu se radi... Ja promjenio, i vidi se i u IE i u mozilli...

Takodjer, text-align: center ti nema nekog smisla...

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
edgar



Joined: 28 Dec 2003
Posts: 916
Location: Pred monitorom

PostPosted: 09.03.2004 10:59    Post subject: Add user to your forum ignore list Reply with quote

taj tex-align je greškom tu.

eh da, zaboravio px znači. ok:-)

tnx

_________________
Digital Genetics | Koote | Nuspojava
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: 09.03.2004 11:22    Post subject: Add user to your forum ignore list Reply with quote

edgar wrote:
eh da, zaboravio px znači. ok Smile

tnx

Da, moras imat definiciju jedinice, buduci da si ovim doctypeom stavio browser u standards-compliant mod, a inace kad je u 'quirks' modu, onda prica hoda i bez jedinica, jer browser pretpostavlja da se radi o pixelima...

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 09.03.2004 11:24    Post subject: Add user to your forum ignore list Reply with quote

W3C savjetuje da se u TEXTAREA stavlja još i COLS="XY" i ROWS="XY"
Back to top
View user's profile Send private message Visit poster's website Twitter profile
edgar



Joined: 28 Dec 2003
Posts: 916
Location: Pred monitorom

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

zytzagoo wrote:
edgar wrote:
eh da, zaboravio px znači. ok Smile

tnx

Da, moras imat definiciju jedinice, buduci da si ovim doctypeom stavio browser u standards-compliant mod, a inace kad je u 'quirks' modu, onda prica hoda i bez jedinica, jer browser pretpostavlja da se radi o pixelima...


Khm, da. Znam da je radilo i bez njih, pa mi nije bilo jasno. Pretpostavljao sam da je do doctype-a, ali nisam bio siguran.

marac wrote:

W3C savjetuje da se u TEXTAREA stavlja još i COLS="XY" i ROWS="XY"


da limitiram broj redaka ( i stupaca?)?

_________________
Digital Genetics | Koote | Nuspojava
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: 09.03.2004 12:24    Post subject: Add user to your forum ignore list Reply with quote

To ne limitira broj redaka i stupaca, nego takodjer daje visinu i sirinu, ali i za browsere koji ne podrzavaju css, a i utoliko je bolje sto onda visina i sirina ovise o fontu koji se koristi, a ne o pikselima recimo... A ako uz to jos definiras i css, onda oni koji kuze css prikazu sa css-om, dok ovi drugi prikazu bez toga, ali opet zadovoljavajuce, a ne proizvoljno...

Radi se o broju redaka teksta i broju 'stupaca' (jer ne znam bolje objasnit) za koji zelis predvidjeti unos... Limit na stvarnu kolicinu teksta mozes postaviti serverskim jezikom nekim ili sa maxlength parametrom u html-u, ili javascriptom recimo...

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
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