Topic: Suggestions to clean up this CSS |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Lost Angeles Kalifornia, via Hawaii.... |
![]() ![]() ![]() ![]() I am reworking a site over the past couple weeks, and wanted to get some input on cleaning up the code. It's really a mess right now but for some reason my paragraphs on the 1st column aren't reflecting margins or padding correctly. Plus I know I've butchered it waaay to much. |
Nervous Wreck (II) Inmate From: United States |
![]() ![]() ![]() ![]() For index.php, you have side margins on #columnA>div.box. The margin-left on that element is increasing the margin on the side, so if you want that margin to match up with that of #columnC, then remove margin-left from #columnA>div.box. The margin-right on #columnA>div.box, however, is what's keeping #columnB in the right spot, so THAT margin-right should actually be added to #columnA and removed from #columnA>div.box, in my opinion.
|
Paranoid (IV) Inmate From: Lost Angeles Kalifornia, via Hawaii.... |
![]() ![]() ![]() ![]() Ok this is another problem I'm having and it's not working right. I'm going crazy trying to figure this one out... |
Neurotic (0) Inmate Newly admitted From: |
![]() ![]() ![]() ![]() You need to set a width for your caption field as it will not inherit the 250px value specified in the image. |
Obsessive-Compulsive (I) Inmate From: |
![]() ![]() ![]() ![]() Actually, the floated div itself needs to have a width specified. Any time you float an element you need to specify a width for it. |
Maniac (V) Inmate From: there...no..there..... |
![]() ![]() ![]() ![]() quote:
|