Solved

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

Posted on 2011-02-28
12
270 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
Technology Partners: 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
This video teaches users how to migrate an existing Wordpress website to a new domain.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

749 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