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
Solved

I'm having trouble inserting an image in some html..

Posted on 2013-01-12
12
192 Views
Last Modified: 2013-01-27
http://www.geniesgameroom.com/ee/

I am trying to put:

http://www.geniesgameroom.com/ee/images/headerbars.gif 

in between the menu options with the text at the middle of the bar. I tried vertical-align but it didn't work for me.

Please help me out

Thanks
0
Comment
Question by:CavemanLawyer
12 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 38769838
Try this:

<div style="margin: 0 auto; padding-left:30px">
	  <a href="#!/page_About" style="text-decoration:none"><strong>About</a>
<img src="images/headerbars.gif " >
	<a href="#!/page_Portfolio" style="text-decoration:none"><strong>Portfolio</strong></a>	
<img src="images/headerbars.gif " >
	<a href="#!/page_Services" style="text-decoration:none"><strong>My Services</strong></a>
<img src="images/headerbars.gif " >
	<a href="#!/page_Reviews" style="text-decoration:none"><strong>Reviews</strong></a>	
<img src="images/headerbars.gif " >
	<a href="#!/page_Contact" style="text-decoration:none"><strong>Contact</strong></a>
</div>

Open in new window

0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38770171
Wow!... 31 errors in validation?  Some of them serious and affecting rendering.  What Dave posted will have a better chance of working if you start from error free code.  As it stands the the page is wonky and unreliable.  You need to fix the code.

Cd&
0
 

Author Comment

by:CavemanLawyer
ID: 38770547
@DaveBaldwin - thanks but they just ended up clustered together on the portfolio link. I need them to be spaced between each menu option.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:CavemanLawyer
ID: 38770549
@COBOLdinosaur - Thanks. I will try to take care of the errors. How do I know what has errors?
0
 

Author Comment

by:CavemanLawyer
ID: 38770608
I was able to get it down to 7 errors - and those are for the contact form and the google map code. It did throw off a bunch of alignment I had though.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 38770617
If they were "clustered together on the portfolio link", then something else is going on.  HTML simply doesn't work that way.
0
 

Author Comment

by:CavemanLawyer
ID: 38770630
Ok I fixed the alignment and made the changes that DaveBaldwin suggested but it still is clustered. I left the results saved so you can see what I am talking about.



http://www.geniesgameroom.com/ee/
0
 

Author Comment

by:CavemanLawyer
ID: 38770634
Any idea of what could be going on? I am using the following css for the menu and I think maybe it is effecting it somehow.

.topmenu a{ 
color:#ffffff;
position:relative;
float: left;
left:30%;
 margin: 15px;
-webkit-transition: margin 1.5s ease-out;
 -moz-transition: margin 1.5s ease-out;
 -o-transition: margin 1.5s ease-out;

} 
.topmenu a:hover { margin-top: 2px; color:#afa9d9} 

Open in new window

0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 38770656
Yes, your menu is re-generated by javascript and 'cufon' so what is in your HTML is not really what is being put on the page.  I don't know how to fix that.
0
 

Author Comment

by:CavemanLawyer
ID: 38770719
Ok thank you for your help. I appreciate it.


Does anyone know how to fix this issue?
0
 
LVL 16

Expert Comment

by:HagayMandel
ID: 38770882
Few steps:

edit the sub div of the topmenu div the following way:

<div style="margin: 0 auto; width: 550px;">

Open in new window


Add a new css rule that applies to the images:

.topmenu img {
float: left;
}

Open in new window


From the .topmenu a css rule (line# 36 in style.css), remove: left: 30%;

Good luck

Hagay
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 38773313
Oh, this is the same one I just helped you with.  I think your new layout does the trick.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
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?
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

860 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