Solved

Create and align image box with logos on home page

Posted on 2008-10-28
16
249 Views
Last Modified: 2013-11-19
I work for a company that wanted me to add some logos to their website. Here's the corrent site:
www.globalsourcingintl.com
Here's what they want done:
www.novanetsolutions.com/GSI.jpg
I'm having trouble getting the box created that will fit exactly like that so the images can go in it. When I create the box it doesn't align exactly along the side of the web page. I created the box in my main screen.css file. Here's the code

.logos {
        float: right;
        width: 200px;
        margin-right: -225px;
        margin-top: -205px;
}

I'm not much of a web site designer so I've been adjusting the margins manually and refreshing the page to get it aligned but it never aligns exact and it shows up different in firefox than it does in IE. Thanks in advance.
0
Comment
Question by:bbrunning
[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
  • 9
  • 7
16 Comments
 
LVL 30

Expert Comment

by:Steggs
ID: 22824536
Hello,

IE6 'Double margin on float bug'

Fix by adding display:inline to #searchform

Thanks
0
 
LVL 10

Author Comment

by:bbrunning
ID: 22824741
I'm using IE7, and it actually looks worse in Firefox than in IE so I don't believe that's the problem.

Thanks
0
 
LVL 10

Author Comment

by:bbrunning
ID: 22824751
Oh I read that wrong. I understand what you mean now. I'll give it a try.

Thanks
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 30

Expert Comment

by:Steggs
ID: 22824875
Your talking about the orange box on the right, correct?
0
 
LVL 30

Expert Comment

by:Steggs
ID: 22824909
Where are the logos... I dont see them at all
0
 
LVL 10

Author Comment

by:bbrunning
ID: 22824915
No, the Orange box is floating properly. I want to make a new box (or add the logos in the jpg) under the orange box.
0
 
LVL 10

Author Comment

by:bbrunning
ID: 22824925
I haven't added the logos back in or the box due to problems. Refer to my link to the jpg for an example of what it needs to look like.
www.novanetsolutions.com/GSI.jpg
0
 
LVL 30

Expert Comment

by:Steggs
ID: 22825173
First of all:

add logos div underneath div#searchform

<div id="searchform"></div>
<div class="logos"></div>

.logos {
background:;
float:right;
margin:0px 10px 10px 0;
width:215px
}
0
 
LVL 10

Author Comment

by:bbrunning
ID: 22828661
I made adjustments to .logos as you said and edited my searchform.php adding div class logos but it puts it in the center of the page instead of underneath it.
I added 2 periods, you'll notice them in the center top of the page below the header.
0
 
LVL 10

Author Comment

by:bbrunning
ID: 22828706
Another note I should probably add. This website is designed with Ruby on Rails. I'm editing the individual pages through the admin control panel and I'm editing the css files and php files through ssl.
0
 
LVL 10

Author Comment

by:bbrunning
ID: 22828769
I worked with the sizing and got it aligned under the search box but there is a slight problem. I think the owner only wanted those logos to show up on the home page only. When added to searchform.php it adds whatever I do to the entire set of pages. I'm going to speak with him tomorrow and see if that's okay but if not, do you know how to do that?
0
 
LVL 30

Expert Comment

by:Steggs
ID: 22830150
Can you work out how its done by seeing how its done on this page http://www.globalsourcingintl.com/about_us/... that has content in the right column
0
 
LVL 30

Accepted Solution

by:
Steggs earned 500 total points
ID: 22830215
Sorry, Ive just realised that my css was wrong for the .logos. What needs to be done is set up a right column on each page. Something like:

#rightCol {
float:right;
width:225px
}

<div id="rightCol">
<div id="searchform"></div>
<div class="logos"></div>
</div>

0
 
LVL 10

Author Comment

by:bbrunning
ID: 22834303
I changed the code a bit that you gave me and it matches up properly under the searchbox, but I need to know if there is a way to hide the logos box on every page but the home (about_us) page. check out the site and you'll see why I need to hide it on some of the other pages:
www.globalsourcingintl.com

.logos {
        background:;
        float:right;
        margin:0px 10px 10px 0;
        width:215px;
        margin-right: 0px;
        margin-top: 65px;
0
 
LVL 30

Assisted Solution

by:Steggs
Steggs earned 500 total points
ID: 22834982
Well, if you want to it in css then you can. What you need is a 'hook' on each page. What I mean is, something unique to each page that you can use with css to hide the logos on certain pages. For example,

on all the pages on your site is an id in each body tag... like the 'Terms of sale' page has <body id="page_tos">. So, if you didnt want the logos to appear on that page, you would do this:

body#page_tos div.logos {
    display: none
}

Hope this helps
Steggs
0
 
LVL 10

Author Closing Comment

by:bbrunning
ID: 31510851
Thanks for all the help!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
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…

726 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