Could you edit the code so my logo is central? I think it's php
7 replies, posted
This bit of code here overhangs the logo on my loading screen for my server. I believe the images/logo.png isn't centralized and is moved to the left. I'm an absolute noob when it comes to this, and would rather not destroy the code
I'm sure it's an easy fix, but could someone correct it for me? (So the image is central) Please? :dance:
[CODE]
<div class="content"> <!--Opens up our content for editing-->
<div class="top-box">
<img src="images/logo.png" class="logo" style="margin-top: 10px; margin-left: -90px;">
</div>
[/CODE]
in style, try: position:absolute; left:50%
Please post in "what do you need help with?" next time!
also I don't know much about web dev stuff but I do know that you should avoid defining most things absolutely. For example, try not to shape anything by exact pixels (px); instead try to use the proportions of the screen, like 25%, 50%, 75%, etc., or the auto keyword
My God static margins? Ugh hhhhhhhh remove all the margin tags and replace with "style ='margin: 0 auto;'"
I don't know which one to try, so I'll try both :downs:
EDIT: Thanks to the second guy who commented it worked :D
YES SSS I KNOW ALMOST NOTHING ABOUT HTML AND CSS AND I DIIIID IT
[code]<center>farts</center>[/code]
:v:
[QUOTE=Rocket;47833284]Do you still use font tags for styling?[/QUOTE]
What's CSS? Everyone's playing CSGO now, dude.
Sorry, you need to Log In to post a reply to this thread.