[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2011-02-28
12
Medium Priority
?
274 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
  • 6
  • 5
12 Comments
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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:Gurvinder Pal Singh
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:
Gurvinder Pal Singh earned 2000 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:Gurvinder Pal Singh
ID: 35004381
try changing z-index to 0
0
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses
Course of the Month18 days, 15 hours left to enroll

834 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