Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-02-28
12
Medium Priority
?
273 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: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
Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

 

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

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

Question has a verified solution.

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

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
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…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Suggested Courses

618 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