Solved

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

Posted on 2011-02-28
12
266 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: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
 

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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now