Positioning Issues

This is a discussion on "Positioning Issues" within the Web Page Design section. This forum, and the thread "Positioning Issues are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 5th, 2006, 02:58
Junior Member
Join Date: Oct 2006
Location: uranus
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Positioning Issues

Hey folks!

Decided to help do a redesign for this site http://www.max-nation.com
Anyway I'm pretty new to the whole makin webpages thing so I might need help a bunch...But onto the question!

This is what I got so far(not much) http://www.freewebs.com/max-nation/Index.html

Alright I want that logo to fit right next to the photograph at the top of the page...How do u do that?

HTML(so far)
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
<title>Max-Nation ~ The Unofficial Maxim Afinogenov Appreciation Website</title>
<link rel="stylesheet" type="text/css"
href="http://www.freewebs.com/max-nation/Max%2DNation.css" />
</head>
<body>
<div id="logo">
<img src="http://www.freewebs.com/max-nation/slug%20with%20background%20blue.jpg" alt="Sabres Logo" />
</div>
<div id="container">
<img src="http://www.freewebs.com/max-nation/max.jpg" alt="Maxim Afinogenov" />
</div>
</body>
</html>
CSS (so far)
Code: Select all
body
{
background-color: #002039; 
margin: 0px;
padding: 0px;
}
#container
{
width: 591px;
margin: auto;
text-align: left;
background-color: #ff9E21
}
#logo
{
position: aboslute;
left: 0px;
top : 0px;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 5th, 2006, 09:14
drd drd is offline
Up'n'Coming Member
Join Date: Dec 2005
Location: Hampshire, England, UK
Age: 28
Posts: 89
Thanks: 1
Thanked 1 Time in 1 Post
Re: Positioning Issues

Hi,

Id add the id="logo" to the image so then you don't need it to be in a separate div:

<img src="" id="logo" alt="" />

Basically, if you use position absolute by itself, it will work from the edge of the screen, unless you put the logo in a div that is set to position: relative.

So, if you want your logo in the container div, do this:

#container {
position: relative
}

img#logo {
position: absolute;
left: 0px;
top : 0px
}

Note I also changed the CSS slightly so the logo is specified as the image.

Hope that helps!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 5th, 2006, 20:08
Junior Member
Join Date: Oct 2006
Location: uranus
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Positioning Issues

didn't work

Now the large photograph overlaps the logo at the top left corner.

Here is the link again http://www.freewebs.com/max-nation/index.html

HELP PLEASE
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 6th, 2006, 08:39
drd drd is offline
Up'n'Coming Member
Join Date: Dec 2005
Location: Hampshire, England, UK
Age: 28
Posts: 89
Thanks: 1
Thanked 1 Time in 1 Post
Re: Positioning Issues

Yeah its because the logo is on a different "layer" now it has the position: absolute added.
You need to move the photo down. If you want the container in the centre it needs the margin: 0 auto set and text-decoration: center in the body. Give the container some top padding to shift the photo down, or the photo some top margin to make it clear the logo.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 7th, 2006, 19:49
Junior Member
Join Date: Oct 2006
Location: uranus
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Positioning Issues

thx makes sense now
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css, positioning

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE and FF Issues... Aaron1988 Web Page Design 0 May 10th, 2008 15:52
Serious issues in IE7 Daimz Web Page Design 2 Aug 21st, 2007 12:38
More IE6 FF issues! Lego Web Page Design 7 Apr 21st, 2007 20:19
CSS Issues. Can you help me out? escaflowne11 Web Page Design 7 Sep 13th, 2006 13:18
More issues. mreine Webforumz Suggestions and Feedback 7 Mar 13th, 2006 02:49


All times are GMT. The time now is 11:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved