471,605 Members | 1,626 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

<strong> inside type="text" filed

130 100+
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="disabled"
can i make calss or css (i realy dont know alot about it)
and then just apllay it with one line ?

Nov 5 '07 #1
7 1545
7,435 Expert 4TB
No and no. At least the second one can't be done with html/css, though javascript might.
Nov 5 '07 #2
6,050 Expert 4TB
Actually to the first question, there is a way of doing so...

Expand|Select|Wrap|Line Numbers
  1. <style type="text/css">
  2.  input{
  3.         font-weight: bold;
  4.  }
  5. </style>
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
Expand|Select|Wrap|Line Numbers
  1.  input[text]{
But i forgets >.<
Nov 5 '07 #3
7,435 Expert 4TB
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.

css stuff
Nov 5 '07 #4
6,050 Expert 4TB
Yes, i see. Sorry i overlooked that.

Why is IE such a pain?
Nov 5 '07 #5
7,435 Expert 4TB
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.
Nov 6 '07 #6
6,050 Expert 4TB
Personally, Opera is the browser for me.

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

Nov 6 '07 #7
7,435 Expert 4TB
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.
Nov 6 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.