Solved

css and html positioning of an image element

Posted on 2014-03-06
8
381 Views
Last Modified: 2014-03-06
I am building a site here.  http://162.211.82.64/~ledgers/ Simple html and css.   I have placed the logo to the left of the LEDGERS4u title.  However, I have used absolute positioning so it moves around from device to device.  How do I position this properly with css and html so it stays to the left of the LEDGERS  and I make it all add up title?
0
Comment
Question by:livewirewebsolutions
  • 4
  • 4
8 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39910458
Move <div class="logo-white"></div> just after the opening H1
Amend the margin and left like so
   left: 0;
    margin: -50px 0;


Tweak as required.
0
 

Author Comment

by:livewirewebsolutions
ID: 39910561
like so? see now.
0
 
LVL 58

Accepted Solution

by:
Gary earned 335 total points
ID: 39910621
No, that's not working
Move it to just before the Ledgers 4u span.

Remove position and left from the .logo-white {} css
Add display:inline-block;
Change the margin to
margin: -60px 0;

You will have to hide it at smaller screens as there is no room for it.
0
3 Use Cases for Connected Systems

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

 

Author Comment

by:livewirewebsolutions
ID: 39910686
mmmmm.  Why is it not working.  It seems to be working perfectly here on a 13" mac and a 19" pc??
0
 
LVL 58

Expert Comment

by:Gary
ID: 39910701
Not once you go down to smaller screen sizes (800px).
0
 

Author Comment

by:livewirewebsolutions
ID: 39910856
ok.  I have made the changes.  How do i remove when a mobile device is browsing the site?
0
 
LVL 58

Expert Comment

by:Gary
ID: 39910918
Add to the css

@media only screen and (max-width: 767px) {
.logo-white {
display:none
}
}

Open in new window

0
 

Author Comment

by:livewirewebsolutions
ID: 39911084
got it.  awesome thanks!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
The viewer will learn how to count occurrences of each item in an array.
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…

831 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