well I’m trying not to use td attributes. I work more tableless now as a software engineer and I hate using tags in <td>s when we should be using css to manage this. Adding stuff to a <td> tag other than class and id is just wrong.
You sir are correct, it would do absolutely nothing, but then again if he says it is working then I’m in no rush to see why/help more. I’m already swamped with trying to solve a bagillion other threads :p.
The height being same as the div doesn’t make sense to me, but I’m probably just tired.
um, I needed to take out the height on one of the classes. So no, not it’s not working because the height on the .checkoutSelect class below was pushing the text up only because the text was laying on that div and when the div got higher it naturally pushed the text up which is really not a good solution at all. But I needed to take out the height because if the inner div grows a lot vertically, I don’t want it overflowing the outside div and it would if I had a neight on .checkoutSelect so I took height out of .checkoutSelect.
Note also that I moved the checkoutSelectOption div to be contained inside the checkoutSelect div. So checkoutSelect is wrapping that div now.
I don’t really want to use attributes on tables (we should always use or aim to use CSS instead) but right now valign=top is working to get that first div aligned to the top of the <td>. I feel dirty though using valign now that I’ve gone tableless but not even that, if I stayed with table design I’d still due to best practices and the whole purpose of utilizing css is to use css to do this, not some attribute on the table because like everything you’re not using a class to manage changes…you’re hacking stuff into the tags of a table which is a NONO in my book…I will simply not do it.
Ok but for now the hack works until I find a CSS way of doing this. I have added a valign to both <td>s and so now the image along with that hyperlink are aligned top to the <td>.
If anyone has a way to do this in CSS please do fill me in because I have not been able to: