Jump to content

How Do I Position This Image Correctly?


moonman
 Share

Recommended Posts

I've been playing around with site making and through tutorials and such nothing "exactly" tells how to position anywhere you want, at least nothing I've seen. My site is here http://www.moonanbeings.com/I want it to be as you see now, but correctly. I'm using CSS to place that image center there and I don't think that's how it should be. It shouldn't be through CSS and it shouldn't be a background image. Having it like that is like my easy way out. So, how do I get that background image to be a regular image and center, center for every resolution?

Link to comment
Share on other sites

Really? Weird. Must've chosen an odd time to look. Maybe try again, if that doesn't work then my coding is:

<html><HEAD><TITLE>Moonan Beings</TITLE><META name="description" content="Description."><META name="keywords" content="Keywords"><META http-equiv="content-language" content="en"><link rel="shortcut icon" href="http://moonanbeings.com/favicon.ico" type="image/x-icon" /><link href="http://www.moonanbeings.com/style.css" rel="stylesheet" type="text/css" /></HEAD></html>

then my CSS is

body {background-image:url('/imagesabyz10/moonbackground2.jpg'); background-repeat: no-repeat; background-attachment: fixed; background-position: center; max-height: 75%; max-width: 75%; width: 100%; height: 100%}body {background-color:#000000;}

You (or whoever) can try the link again to see how I want it to be if you can't envision it through my description. To summarize again, my image shouldn't be a background image but a standalone image and center, center. How do I code this?

Link to comment
Share on other sites

Well the thing is, I could probably figure out how to just insert it as an image but then I'd be stumped on the positioning. I'll be using a different image when I'm good and ready to go but I want it to just be a logo for the most part. Then I'll add links probably under it or create more lines off the moon as my navigation.

Link to comment
Share on other sites

Sooner than later you'll have to know about positioning. It's a very basic skill: http://www.w3schools...positioning.aspand http://www.w3schools...s/css_float.asp Asking a question about positioning by avoiding positioning is a bit of a non sequitur though I suppose you could do that by setting the margins and the size of your image.

Edited by niche
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...