473,394 Members | 1,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 ?

thanks
Nov 5 '07 #1
7 1731
drhowarddrfine
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
Markus
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>
  6.  
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]{
  2.  
But i forgets >.<
Nov 5 '07 #3
drhowarddrfine
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.

input[type=text]{
css stuff
}
Nov 5 '07 #4
Markus
6,050 Expert 4TB
Yes, i see. Sorry i overlooked that.

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

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

:)
Nov 6 '07 #7
drhowarddrfine
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

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

Similar topics

6
by: Matt Adams | last post by:
I want define for a couple of words inside a longer text with different font specifications. I declared it like: ....text before.... <FONT class=aaa> these text should get other attributes...
1
by: melda | last post by:
I am a real beginnner in ASP. Due to increasing demands on dynamic website, I've been working on ASP website now. I use a ready to use CMS program and right now I've been trying to combine a calendar...
2
by: zek2005 | last post by:
Hi! I have a value loaded in a database as following: &lt;p&gt;&lt;strong&gt;test&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;test 2&lt;/ strong&gt;&lt;em&gt;&lt;strong&gt;questions&lt;img alt=&quot;&quot;...
23
by: Stanimir Stamenkov | last post by:
I want to find out whether the following usage of the "Bookmark" link type is o.k. An example could be seen at <http://www.geocities.com/stanio/more/horoskop.html>. The text is in Bulgarian and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.