Here is my problem:
I have a checkbox and text input elements inside the same ID.
I need checkbox to be 20px wide and textbox - 200px wide.
I have this:

#check input {
	float:left;
	border:solid 1px #afd45a;
	width:20px;
	margin:2px 10px 10px 6px;
}

What's my solution should be for the textbox?

Here is my HTML

<div id = "check">
		<input type="checkbox" id="patent" name="patent" value="Y" /> 
		<label for="patent">US Patent (patent number):</label>
		<input type="text" id="patentnum" name="patentnum" />
            </div>

Recommended Answers

All 2 Replies

#check #patentnum { width: 200px; }
#check #patentnum { width: 200px; }

So simple and never occurred to me!
Thank you! It worked.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.