Eh, halp

Discuss web site design

Moderators: IRC Operators, Support Team

Goem
User
User
Posts: 37
Joined: Sun Sep 28, 2008 10:57 am

Eh, halp

Postby Goem » Fri Dec 05, 2008 5:58 pm

Something really weird is going on. When I specify the margin-top of p in CSS, the background goes down with it too!
www.freewebs.com/icecreambot/test/htm
Hi.
Wraith
User
User
Posts: 300
Joined: Sun Oct 14, 2007 7:38 pm

Postby Wraith » Fri Dec 05, 2008 7:59 pm

its .htm not /htm in your link
Zanith
IRC Operator
IRC Operator
Posts: 1082
Joined: Sun Nov 05, 2006 7:23 pm
Location: Internet
Contact:

Postby Zanith » Fri Dec 05, 2008 9:01 pm

http://www.freewebs.com/icecreambot/test.htm
is the link.

And what exactly is the problem, I can tell English isn't your native tongue, but could you explain what it is doing that you don't want it to do.
http://www.scaryinter.net
Official SwiftIRC Slogon: <Ab`Couttsy> what topic
Goem
User
User
Posts: 37
Joined: Sun Sep 28, 2008 10:57 am

Postby Goem » Sat Dec 06, 2008 10:43 am

I want the background just to be on the same place, just at the top, no top-margin. When I specify a margin for my paragraphs or div.text, the text moves down with the text. It shouldn't.
Hi.
Markie
User
User
Posts: 112
Joined: Mon Dec 01, 2008 3:26 pm

Postby Markie » Wed Dec 17, 2008 3:30 pm

With margin-top that's what you're telling it to do.

A margin is an area outside the div/p/tag without content, while you are looking for a padding, which is an area inside the div/p/tag without content.


As you've made multiple css related questions I'd like to suggest you going through this tutorial: http://www.w3schools.com/Css/css_intro.asp - it explains the basics and should stop you making more similar threads :D!
Goem
User
User
Posts: 37
Joined: Sun Sep 28, 2008 10:57 am

Postby Goem » Wed Dec 17, 2008 4:27 pm

Eh--actually I've read the guide, that's where I got the basics from, what isn't clear is what I am posting here ^_^.
Hi.
Markie
User
User
Posts: 112
Joined: Mon Dec 01, 2008 3:26 pm

Postby Markie » Wed Dec 17, 2008 5:49 pm

Well... Perhaps re-read it, I think this was covered in it.

As another suggestion, if you use FireFox (which I recommend if you want your websites to look right, IE messes up a lot which looks good in 'modern' browsers) get the FireBug add on.. It shows the HTML code of your website, and the CSS with them.

You can sort of select an area on the webpage, and FireBug will tell you what styles are causing it's appearance.. and it also shows the margin, padding and what not for objects.


Did you manage to fix this problem, btw?

Return to “Web design”

Who is online

Users browsing this forum: No registered users and 1 guest