Page 1 of 1

problem with open space in layout [SOLVED]

Posted: Thu Dec 08, 2011 11:42 am
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

Re: problem with open space in layout

Posted: Thu Dec 08, 2011 12:00 pm
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.

Re: problem with open space in layout

Posted: Thu Dec 08, 2011 12:42 pm
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 ?

Re: problem with open space in layout [SOLVED]

Posted: Thu Dec 08, 2011 5:40 pm
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;
}