/    Sign up×
Community /Pin to ProfileBookmark

Padding / Margin probs…. any ideas?

I am having troubles with my page. If you go to [url]www.mrpunkin.com[/url] in IE you see the menu on the left with the rollovers. See how its got a 10px margin on top and bottom or so? Now do it in Mozilla, Firebird, Safari, etc and it has a HUGE left margin for the menu. The same is for my thumbnails on the photo page. It seems to not like the margins or padding on the lists, as both my menu and thumbnails are setup as lists.

Anyone got a solution? The CSS is [url]www.mrpunkin.com/default.css[/url]

Thanks ahead of time.

to post a comment
CSS

13 Comments(s)

Copy linkTweet thisAlerts:
@pyroJan 07.2004 — Play with the margin and padding on the ul element.
Copy linkTweet thisAlerts:
@MrPunkinauthorJan 07.2004 — I have a lot but it doesnt seem to change anything, or it just screws everything up vertically. It seems I can NOT move it to the left anymore, only further to the right.
Copy linkTweet thisAlerts:
@Paul_JrJan 07.2004 — Off the top of my head, try adding [FONT=courier new]padding-left: 5px;[/FONT] to your [FONT=times new roman]#menulist[/FONT] styles.
Copy linkTweet thisAlerts:
@PeOfEoJan 07.2004 — In your menulist make it position:absolute; See what that does. I would rop the margins all together if I were you and use left:5px; and top:5px; too, but that would be me.
Copy linkTweet thisAlerts:
@MrPunkinauthorJan 07.2004 — I love you.... honestly. That fixed it, although I used 0 instead of 5px. AMAZING it was that simple. Thanks!

btw: I had tried the absolute position and it didnt work. This works now though in all my browsers, thanks everyone! it was the padding-left.
Copy linkTweet thisAlerts:
@pyroJan 07.2004 — [i]Originally posted by MrPunkin [/i]

[B]That fixed it[/B][/QUOTE]


Yep: :rolleyes:

[i]Originally posted by pyro [/i]

[B]Play with the margin and padding on the ul element. [/B][/QUOTE]


IE and Mozilla render them differently, which is why I told you to play with the values for both.
Copy linkTweet thisAlerts:
@PeOfEoJan 07.2004 — that is why I said use left and not margin and get rid of that all togther, left and absolute to position it 5px from the side of the div.
Copy linkTweet thisAlerts:
@pyroJan 07.2004 — [i]Originally posted by PeOfEo [/i]

[B]make it position:absolute;[/B][/QUOTE]
You're addicted to [font=monospace]position: absolute;[/font], aren't you? :p
Copy linkTweet thisAlerts:
@PeOfEoJan 07.2004 — No, I use relative too, but with the left you would need it (or relative) but I can just see relative causing problems in this situation with how it likes to wrap things.
Copy linkTweet thisAlerts:
@pyroJan 07.2004 — Which is why using no positioning at all is the best method. Simply removing the margin and padding is the way to go. ?
Copy linkTweet thisAlerts:
@PeOfEoJan 07.2004 — [i]Originally posted by pyro [/i]

[B]Which is why using no positioning at all is the best method. Simply removing the margin and padding is the way to go. ? [/B][/QUOTE]
grrrr float:center; :p
Copy linkTweet thisAlerts:
@MrPunkinauthorJan 07.2004 — well, no matter how its done, right now it reads the exact same in Mozilla, Firebird .7, Safari 1.1, IE6, and Opera 7. I know because I have all these here and have tested them all.
Copy linkTweet thisAlerts:
@PeOfEoJan 07.2004 — want me to check it in ie 5 and 5.5 for yah? I just previewed it in is 5 and 5.5 and it reads just like ie6 in those two browsers, so you don't have any box model problems, congrats.
×

Success!

Help @MrPunkin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...