<strong> inside type="text" filed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Amzul
    New Member
    • Oct 2007
    • 130

    <strong> inside type="text" filed

    hello all.
    can someone tell if its possible to put <strong> inside the value?
    whats the right syntax?
    and another Q
    is it possible to applay new style to a form
    i mean i want to disable all the text filed in the form
    but i dont want to go one by one and wirte disable="disabl ed"
    can i make calss or css (i realy dont know alot about it)
    and then just apllay it with one line ?

    thanks
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    No and no. At least the second one can't be done with html/css, though javascript might.

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Actually to the first question, there is a way of doing so...

      [code=css]
      <style type="text/css">
      input{
      font-weight: bold;
      }
      </style>
      [/code]
      That will give the <strong> look to all inputs.
      No idea about the second though, looks like a JS question.

      I remember reading somewhere that you can select certain input types by doing something like
      [code=css]
      input[text]{
      [/code]
      But i forgets >.<

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        In the first case, as you said, ALL input will be bold but I assume he wants to use <strong> to select only parts.

        In the second case, you are thinking of selectors where the part within the brackets, like you show, would be a property name. You can't point to the contents itself. Even then I can't think of how you could disable it.

        EDIT: Now that I think of it, there is a way to get at the text with selectors. Of course, it won't work in IE. CSS3 has some good stuff for doing this but, of course, it won't work in IE.

        input[type=text]{
        css stuff
        }

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          Yes, i see. Sorry i overlooked that.

          Why is IE such a pain?

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            Internet Explorer was an add-on to Windows Explorer of the OS. Hence the name. It still shares much of the same code. All of this is document-centric so it will work with Word, Excel, the OS, etc. So all of it is aligned to Microsoft's software. The Internet was always an afterthought.

            If you recall from a not too long ago, Bill Gates dissed the internet as nothing important to them. But now, they can't tear IE away from the OS without breaking a lot of interfaces to their software and code in general. But this also means they can't make their browser comply with the standards; or at least it's difficult.

            So why don't they endorse another or build anew? Because then they lose their grip on how all the software interacts and opens it up to 3rd parties. So it's a business decision as evidenced by their lead developer, Chris Wilson, stating he wants IE to be more standards compliant while, out of the other side of his mouth, he says making IE work with their software is more important than standards. (IEBlog and Albatross!)

            In the meantime, IE market share is slowly dwindling as developers have had their fill trying to make their markup fit IEs bugs and quirks. In Europe, usage is as high as 50% in Germany and Finland according to ArsTechnica; as is Australia. Others hover around 30%. In the US, FF usage is around 14%, iirc.

            None of these numbers include Opera or Safari or other browsers.

            Comment

            • Markus
              Recognized Expert Expert
              • Jun 2007
              • 6092

              #7
              Personally, Opera is the browser for me.

              But i'm only 17... what do i know?

              :)

              Comment

              • drhowarddrfine
                Recognized Expert Expert
                • Sep 2006
                • 7434

                #8
                Opera is very good. I might use it if it weren't for the developer tools available on Firefox. Some don't use it because its interface is somewhat different from the others.

                Comment

                Working...