Solved

css and html positioning of an image element

Posted on 2014-03-06
8
378 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to use a function in heredoc 5 23
Why isn't the "Select Name" showing on this form drop down 4 21
Objects on Same Line 2 18
Wrapper for APPs 9 40
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.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

24 Experts available now in Live!

Get 1:1 Help Now