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
button[type=name] css u IE

 
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
termic



Joined: 11 Jan 2008
Posts: 4

PostPosted: 13.12.2008 19:58    Post subject: button[type=name] css u IE Add user to your forum ignore list Reply with quote

Imam problem s CSS za Internet Explorer u vezi HTML taga:
Code:
<button type="cancel">X</button>


Style za submit prolazi, ali za cancel ne.
U FF i Chrome sve radi ok, ali IE6 i IE7 ne.

Evo cijeli primjer:
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>
      <style>
         button[type=submit]{
            width: 21px;
            height: 21px;
            background-color: #FF6600;
         }
         button[type=cancel]{
            width: 21px;
            height: 41px;
            background-color: #211FF0;
         }
      </style>
   </head>
   <body>
      <form>
         <button type="submit">S</button>
         <button type="cancel">X</button>
      </form>
   </body>
</html>
Back to top
View user's profile Send private message
blackshtef
mi3.crew


Joined: 13 Sep 2003
Posts: 661

PostPosted: 13.12.2008 20:15    Post subject: Re: button[type=name] css u IE Add user to your forum ignore list Reply with quote

termic wrote:
Imam problem s CSS za Internet Explorer u vezi HTML taga:
Code:
<button type="cancel">X</button>


Style za submit prolazi, ali za cancel ne.
U FF i Chrome sve radi ok, ali IE6 i IE7 ne.

Evo cijeli primjer:
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>
      <style>
         button[type=submit]{
            width: 21px;
            height: 21px;
            background-color: #FF6600;
         }
         button[type=cancel]{
            width: 21px;
            height: 41px;
            background-color: #211FF0;
         }
      </style>
   </head>
   <body>
      <form>
         <button type="submit">S</button>
         <button type="cancel">X</button>
      </form>
   </body>
</html>


Ne postoji cancel, nego reset tip Wink
Code:
<button type="reset">X</button>


Neznam jel će to utjecat na prikaz, al ono, to mi je upalo u oko

http://www.w3schools.com/tags/att_button_type.asp
Back to top
View user's profile Send private message Send e-mail MSN Messenger
fun.ky



Joined: 05 Jan 2006
Posts: 365
Location: Mostar

PostPosted: 13.12.2008 20:38    Post subject: Add user to your forum ignore list Reply with quote

IE6 (za 7 nisam siguran) ne prihvata
<style>
button[type=submit]{ ...}
</style>

probaj staviti klasu na button i onda u klasi definiši osobine.


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>
      <style>
         .subimt{
            width: 21px;
            height: 21px;
            background-color: #FF6600;
         }
         .cancel{
            width: 21px;
            height: 41px;
            background-color: #211FF0;
         }
      </style>
   </head>
   <body>
      <form>
         <button type="submit" class="submit">S</button>
         <button type="reset" class="cancel">X</button>
      </form>
   </body>
</html>
[/quote]

_________________
There is no style definition for good music!
Back to top
View user's profile Send private message Visit poster's website Twitter profile
sphx



Joined: 02 Jun 2004
Posts: 109
Location: Split

PostPosted: 13.12.2008 20:39    Post subject: Add user to your forum ignore list Reply with quote

hmm, probaj sa:

<input type="reset">

css:

input[type='reset'] {
...
}

eh da... IE6 ne podržava ovakav tip selektora, zato uvijek kad radim nešto što treba raditi i u IE6 koristim class atribut, je malo tlaka, al navikne se covjek
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
termic



Joined: 11 Jan 2008
Posts: 4

PostPosted: 13.12.2008 22:09    Post subject: Add user to your forum ignore list Reply with quote

Hvala svima..
Koristim jEditable, pa sam mislio da ne mogu definirat class u <button>, ali uspio sam.

Ako jos nekome treba:
ako se upise samo ime:
Code:
....cancel    : 'Cancel'...

onda on sam dodaje <button>, a moguce je definirati i cijeli <button>
Code:
....cancel    : '<button type="cancel" class="button_cls">Cancel</button>'....
Back to top
View user's profile Send private message
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 15.12.2008 07:48    Post subject: Add user to your forum ignore list Reply with quote

CSS atribut selektor, dakle nesto[atribut=vrijednost] ne radi u Internet Exploreru.

Stavi className na željeni element i preko toga oblikuj CSS-om.

_________________
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
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