To anyone that can assist, thank you (for real). I am fried from trying to read, review, test, and search for a solution. And in the end, I know it will be that I overlooked something, so let me say in advance, my apology for my oversight.

On the sidebar is a newsletter signup, I simply can't get it to work, I got other parts of the site to, but that one... I just don't get it.

It is aligned to the left where I want it, even with the bullet points of other sidebar locations, but its not filling out. We are wanting the input box and buttons to match the styles of the search bar at the top. Black background input box, green button with white text.

The CSS file has all the existing information in it, but I cant seem to get it?

Can anyone (and please do this in a simple manner if you want to assist) show me what I did wrong (then I again I removed all the errors), or show me what code to put there. I am mentally exhausted, and do not like to burden others with issues like this.

@Stevie: Just a question. Why taking the float out? I just tried it and the butons lining up nicely. Is there a reason why you would take that out? Just curious.

As a general rule, I would say "don't float anything you don't need to". Although, to be fair, that would apply to any positioning style. There's no need to float those elements, so why do it? All that happens is that you set yourself up for rendering bugs, particularly in older browsers. Keep it as simple for yourself as you can!

TGN
—
2010-08-30T10:35:31Z —
#3

Ah, that made the buttons stack on top of each other, and not side by side.

TGN
—
2010-08-29T23:07:09Z —
#4

Hows that look?

TGN
—
2010-08-29T21:10:10Z —
#5

Ok, let me see if I can try out what your saying, trying to learn this.

Stevie_D
—
2010-08-29T20:12:14Z —
#6

TGN said:

Wait, do I add another line called #newsletter or put the settings under the existing .newsletter

At the moment, you haven't got any styling on the form controls in <div id="newsletter">. You'll need them to be slightly different, eg you won't want the magnifying glass icon, and the positioning of the buttons needs to be different, so you'll need to set up new styles for

newsletter input[type=text] { ... }

newsletter input[type=submit] { ... }

copying the relevant bits from your search form styling.

Oh yes, and you'll need to include an action for the form as well.

TGN
—
2010-08-29T19:14:17Z —
#7

I can't figure this out, its just not working for me.

TGN
—
2010-08-29T19:06:16Z —
#8

Wait, do I add another line called #newsletter or put the settings under the existing .newsletter

Stevie_D
—
2010-08-29T18:13:35Z —
#9

TGN said:

Thank you, I fixed the float, and that fixed the background. Now I just need to figure out how to make the input box and buttons like the search ones up top. Haven't been able to fix it so far.

Piece of cake. The styling around the search box is applied with #search, so you just need to repeat it for #newsletter and you're done.

TGN
—
2010-08-29T18:05:08Z —
#10

Thank you, I fixed the float, and that fixed the background. Now I just need to figure out how to make the input box and buttons like the search ones up top. Haven't been able to fix it so far.

Any ideas?

TGN
—
2010-08-30T23:30:36Z —
#11

Ok woah, so what changes do I need to make as it sits right now? Sorry guys, I read all your stuff, and now am not sure what to do to it lol.

Stevie_D
—
2010-08-30T08:21:00Z —
#12

TGN said:

Well, its almost flawless. But I cant get the two buttons to be the exact width of the input box. Any ideas? This is the code as it stands right now, you can see the input box is slightly longer then the two boxes below it.

In the [type=submit] declaration, if you take off float:left; and change the right margin from 5px to 12px, that should do the job.

Stevie_D
—
2010-08-29T15:21:02Z —
#13

Your newsletter <div> is floated, which means that its parent element doesn't surround it. I don't see why it needs to be floated. Try just taking the float off, and it should behave as you want it to.

(You could also do with running your code through the W3C Validator - it's full of errors, and that just isn't acceptable if you're saying it's XHTML Strict - and tidying up your CSS file, it's quite staggeringly bloated!)

Stomme_poes
—
2010-08-30T13:47:49Z —
#14

Normally, most browsers treat inputs as either inlines, or inline-blocks (seems to depend on the browser). So most of the time, so long as there's room, they'll stack up side by side anyway. Assuming they are next to each other and not wrapped individually in blocks or something.

So normally one shouldn't need to float inputs... Though the large right margin they both have may have forced one below the other. Setting the right margin to 6px let them both sit side by side.

Ideally you'd only set margin on the first one, so that you could make them exactly match the width of the input. You could do that using some fancier CSS, but it wouldn't work in IE6, if you care.

Would be less CSS if you put a class on the first submit button though.

donboe
—
2010-08-30T13:21:48Z —
#15

Stevie_D said:

In the [type=submit] declaration, if you take off float:left; and change the right margin from 5px to 12px, that should do the job.

@Stevie: Just a question. Why taking the float out? I just tried it and the butons lining up nicely. Is there a reason why you would take that out? Just curious.

Stomme_poes
—
2010-08-31T07:24:42Z —
#16

Try reducing the right margin on the submits to 6px and go from there.

I agree with StevieD re floating and positioning... you have the least amount of code if you start with document flow default (how things will sit natually before you position them) and then add on little changes as necessary.

TGN
—
2010-08-31T12:34:18Z —
#17

How does that look guys?

Stevie_D
—
2010-08-30T12:33:47Z —
#18

TGN said:

Ah, that made the buttons stack on top of each other, and not side by side.

Hmm, maybe I changed something else as well when I was playing around with it. Try changing the margin values until they line up as you want...

TGN
—
2010-08-30T01:51:41Z —
#19

Well, its almost flawless. But I cant get the two buttons to be the exact width of the input box. Any ideas? This is the code as it stands right now, you can see the input box is slightly longer then the two boxes below it.