problem with open space in layout [SOLVED]

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"
Post Reply
Meganic
New Member
New Member
Posts: 2
Joined: Thu Dec 08, 2011 11:16 am

problem with open space in layout [SOLVED]

Post by Meganic »

Hello,

i am bussy with making my own portfolio e.d
only the problem is that there is an empty space between menu and content if il do absolute in content the problem is solved only then the problem is that it is align left and 100%

how can i solve this problem ?

http://www.kuiler.nl
Last edited by Meganic on Thu Dec 08, 2011 1:39 pm, edited 1 time in total.
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

Re: problem with open space in layout

Post by mcDavid »

The margins of the <h1> element collapse to the parent div.

Google "margin collapse" for a lot of information about this. setting the overflow property of the parent div to something not-default is a common fix for this.

Also, please do the internet a favour and remove the <font> tags.
Meganic
New Member
New Member
Posts: 2
Joined: Thu Dec 08, 2011 11:16 am

Re: problem with open space in layout

Post by Meganic »

GOT IT !

thank you very much,

and also deleted the <font> tags ;)
how do you do the font tags in css ?

give a style to h1 ?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: problem with open space in layout [SOLVED]

Post by Dr.CSS »

Look at some of the default style sheets to see how to style h1...

h1 {
margin: 0 0 0.5em 0;
padding-bottom: 1px;
font-size: 2em;
line-height: 1em;
text-align: left;
color: #294B5F;
}
Post Reply

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