Content Area Superior Margin

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
alarach

Content Area Superior Margin

Post by alarach »

My site www.65years.com

As you can see inside content area, I need the superior margin to down.
My questions what's the code to do it?
Or where it's the code to modify it inside the style page.

Image

Thank you,
Last edited by alarach on Tue May 29, 2007 10:43 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Content Area Superior Margin

Post by RonnyK »

What about

Code: Select all

 div#content {
   margin: 1.5em auto 2em 0;   /* some air above and under menu and content */
}
to give space to the entire content-block.

Ronny
alarach

Re: Content Area Superior Margin

Post by alarach »

No that one.

I need headings (Home Word) to give some air.
Padding down.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Content Area Superior Margin

Post by Dr.CSS »

That is controlled by this call in the CSS...

div#content h2 {
color: #294B5F;
font-size: 1.5em;
text-align: left;
/* some air around the text */
padding-left: 0.5em;
padding-bottom: 1px;
/* set borders around header */
margin:10;
padding:10;
border-bottom: 1px solid #e7ab0b;
border-left: 1.1em solid #e7ab0b;
        line-height: 1.5em;
/* and some air under the border */
        margin: 0 0 0.5em 0;
}
alarach

Re: Content Area Superior Margin

Post by alarach »

Thank you Mark.
I modify everything, and nothing happened!
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Content Area Superior Margin

Post by RonnyK »

change padding-top in DIV#main to 1em and it'll get air.

Ronny
alarach

Solve

Post by alarach »

Thank yoy Ronny
Inside the div#main I change the Padding to 1em
Thanks.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Content Area Superior Margin

Post by RonnyK »

Alarach,

if you have FF, you can install the webdeveloper-extension. When you use that you can show your site in FF, got to "CSS -> Style sheet information". When you then hover the page, you'll see the elements used, and know where to change the settings.

Ronny
Locked

Return to “Layout and Design (CSS & HTML)”