Need some superior css intelect
-
Im working on an as of yet unlaunched site that has some very tight design requirements.
The problem im running into is that some pages require an image to span the full width of #content (so no padding) and others have text and those pages require padding. The #content div is a different background color than the rest of the site.
Examples:
#1 image same width as content https://searts.org/wp/about-searts/All is fine except div is higher than image and white background shows below
#2 page with content https://searts.org/wp/mission-history/
Needs padding, but if I add it it messes up display in case #1 abouveSo the question is is there a way with css that I can add padding to the #content div only in cases where there is text.
In addition in the case of the image only page thee is a pasky <P> tag that surrounds the image and which i think is the reason that the div is taller than the enclosed image in the first example. Is there a way to get rid of it?
Thanks
- The topic ‘Need some superior css intelect’ is closed to new replies.