Solved

CSS Trying to get image positioned in top left corner, need help

Posted on 2011-02-28
12
271 Views
Last Modified: 2012-06-27
I will provide a link to the live site if someone can provide me a way to deliver it without having to post it for the world to see. In my header section there is already a background image. I want to try and position our logo in the top left of our header section. I've tried all the CSS tricks I know but I can't seem to make it work.
0
Comment
Question by:J C
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
12 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 35004035
you have tried this also?
background-position:left top;

http://www.w3schools.com/css/css_background.asp

0
 
LVL 12

Expert Comment

by:Amick
ID: 35004049
Am I correct in assuming you've created a header div and that you've positioned your image at absolute 0,0 but still can't get the result you need?

To protect your client, you may just want to provide a minimal page with images from the web to represent your layout and css.
0
 

Author Comment

by:J C
ID: 35004188
I have tried those suggestions. I already have a background image and I am not sure if it's even possible to place another image that would overlap it. Here is a link to a temporary url

http://template.envisionsolutions.net
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:J C
ID: 35004190
I am new to CSS and DIV's. It could be that I am really not sure where to put it inside of the web page
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 35004209
@jleecole: you have not set the background-position:left top; property

replace line 136 in template.css with
background-position:left top;
0
 

Author Comment

by:J C
ID: 35004335
I've not done a very good job of explaining myself and I am sorry about that. I want to add an additional image, the companies logo in the top left corner. I had code in there before. The issue is that there is already a background-image. I am trying to place an additional image and leave the gradient background in place. Is there a way to do that with a background-image already in use for that div?

0
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 35004350
then you just have to put an img tag inside that header, with absolute positioning

img#smallLeftTopImage
{
  position:absolute;
  left:0px;
  top:0px;
  height:50px;
  width:50px;
  z-index:1000;
}

<img src="smallLeftTopImage.jpg" id="smallLeftTopImage"/>
0
 

Author Comment

by:J C
ID: 35004368
If you look at the template now, you will see the image overlapping the flash header. I am trying to move it to the left of it. I feel like we are closer though!
0
 

Author Comment

by:J C
ID: 35004375
I figured out where to stick the img. Thanks a lot man! Any recommendations on a book or any other materials to become a CSS guru?
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 35004381
try changing z-index to 0
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 35004384
sorry, rather reduce the width.

check this (this has almost everything :))
http://www.w3schools.com/css/default.asp
0
 

Author Closing Comment

by:J C
ID: 35004445
Thank you
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question