Doug Brown wrote: > http://72.174.248.16/totallyclassified/index.cfm
> Hi everyone! This will be my first of probably many posts to the > lists as I am very green (noob) at css. I of course will do my best > to find answers via books and other resources before tying up someone > elses time. Welcome! Your intentions sound good. Not to put you off, but first you'll have to decide whether you want to create wellformed XHTML - where not a single error is acceptable... <http://www.w3.org/TR/xhtml1/> ...or if the somewhat easier and relaxed HTML 4.01... <http://www.w3.org/TR/html401/> ...is a better choice. You also have to decide if you _can_ create 'Strict' source-code, or if you'll have to start with 'Transitional'. You should aim for Strict, but it's no use adding such a doctype if the document isn't up to it. No matter what you choose; you have to work towards creating something a lot more error-free than what you've got now... <http://validator.w3.org/check?uri=http://72.174.248.16/totallyclassified/index.cfm> ...as that many errors (800+) is simply unacceptable - regardless of doctype-flavor. It's of little use trying to correct things with CSS in such a weak document, as browsers are working overtime trying to recover from errors in the source-code. There's probably only a few dozen serious errors (affecting the layout) in your source-code, but that's a few dozen too much. The base for sensible use of CSS is flawless source-code (HTML), so you have to start there. > Now on to my first question. I have the following little search > function that is wrapped in <div> I cannot seem to get the two lined > up with the same height and position, I have tried everything I can > think of. Any suggestions? P.S This has a little cfml mixed into it, > but that would not mess with the formatting. You're positioning that div relative to body, while the page as a whole is centered - using centered tables and <center>. That won't work. The element containing the search function must be centered too. You can ditch the div and style the form instead, center it and give it the same with as the rest of the page - 870px, and then align the search function as you like inside the form. The problem is that not all browsers will agree on where to position it because there are so many errors and conflicts in your source-code. You'll end up with a uncontrollable mess, so I won't give you a "copy and paste" CSS solution before you have improved on the source-code. regards Georg -- http://www.gunlaug.no ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
