473,409 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

how to display inline navigation next to an img using css? works in IE not mozilla

I've got this to finally work in IE (its only taken me 2 days solid), but now mozilla isn't displaying the text on the same line as the image. I'm a newby at CSS, and I've think I've worked on trying to resolve this too long and now I'm totally lost.

I've posted this up to a site:
*************************Uploaded to SERVER ********************
www.onlinecreations.com.au/wtts/index.php
like I said, works in IE but not Mozilla.

I just want the image to display top left, heading centered next to the image on the same line and the navigation bar to display under the heading next to the image as well.

I'd appreciate any and all help. PLEASE.

Also it appears that there are margins in Mozilla for the page (I don't want them), but not for IE. How do I get rid of them in Mozilla?

This is my CSS 3 column Hdr & Ftr code (it goes on for a while):

************************CSS code *****************************

body{
margin: 0 0 0 0;
padding:0 0 0 0;
background:#254117;
color: #347235;
}

#navbar {
position:absolute
top: 35px
left: 150px;
margin: 0 20px 0 0;
padding: 0 0 0 0;
width:100%;
height:15px;
background:#ffffff url(img/nav_bg.jpg);
text-align:left;
color:#000000;
font-size:.9em;
z-index:7;
}


/* navigation bar contents*/

#nav ul{
padding:0 0 0 13%;
margin: 0 0 0 0;
white-space: nowrap;
font-size:0.9em;
color:#ffffff;
float:left;
width:87%;
height:15px;
background:transparent;
list-style:none;
}

#nav ul li{
display:inline;
list-style:none;
}

#nav ul li a{
margin: 0 0 0 0;
padding: .4em 1em .46em 1em;
color:#ffffff;
text-decoration:none;
float: left;
border-left:1px solid #999999;
background:transparent;
}

#nav ul li a:hover{
color:#4AA02C;
text-decoration:none;
border-left:1px solid #999999;
}
/* end navigation bar */

#left_col{
position:absolute;
top:145px;
left:0;
background-color: #347235;
width:140px;
height: 100%;
z-index:3;
color: #000000;
}

#right_col{
position:absolute;
top:145px;
right:0;
width:140px;
z-index:2;
background:#347235;
color: #333333;
}

#center_block {
width:100%;
z-index:1;
background:#347235;
color: #333333;
height:80%;
}

#header {
position: absolute;
top: 0;
left: 250px;
margin: 0 0 0 0;
height:50px;
border-bottom:1px solid #000000;
width:50%;
background:#4AA02C;
color: #000000;
z-index:6;

}

#header_block {
position:relative;
margin:0 20px 0 20px;
padding:0 0 0 0;
width:250px;
background:#347235;
text-align:left;
color:#eeeeee;
}

#center_col{
margin:0 142px 0 142px;
position:relative;
background:#ffffff;
color: #333333;
z-index:5;
border: solid #000000;
border-width:0 1px;
}

#footer {
width:100%;
height:35px;
border: solid #000000;
border-width:1px 0;
background:#254117;
color: #4AA02C;
margin:0;
}

/* workarounds and hacks */
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}

.clearfix {display: inline-table;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */

p {
padding: 0 15px;
}

h4, h3 {
margin:0;
padding: 5px 0;
}

p:first-letter {
font-size: 140%;
font-weight: bold;
color: #254117;
}

h1 {
font-size: 250%;
font-weight: bold;
color:green;
vertical-align: text-top;

}

h2 {
font-size: 150%;
font-weight: bold;
color:green;
}

******************************** HTML CODE following**************

I have the html code (relevant part of it) here:

<div class="top"></div>

<div class="page_wrap clearfix">

<!-- header div -->
<div class="header">
<!-- header block div -->
<div class="header_block"><img src="img/wtts_logo_brush.gif" align="left"/>
<h1><center>Willow Tree Training Pty Ltd</center></h1>

<!-- nav bar div -->
<div class="navbar" id="nav">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="training.php">Training</a></li>
<li><a href="youth.php">Youth Services</a></li>
<li><a href="worker.php">Worker Training</a></li>
<li><a href="consultancy.php">Consultancy</a></li>
<li><a href="business_awards.php">Business Awards</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="about.php">About Us</a></li>
<br />&nbsp<br />
</ul>
</div> <!-- end nav bar div -->

</div> <!-- end header_block div -->
</div> <!-- end header div -->
</div> <!-- end page wrap clearfix div -->
Sep 7 '06 #1
3 4919
Banfa
9,065 Expert Mod 8TB
Sorry message removed on the grounds it was total rubish
Sep 7 '06 #2
why is it total rubbish? Its a problem that I have displaying CSS controlled pages, I've included the CSS and the HTML. I've included an address so that you can see the problem working.
Sep 7 '06 #3
Banfa
9,065 Expert Mod 8TB
Sorry Jannette, the message I had posted was total rubbish not your post or page.

I jumped to a conculusion that was wrong because I was at work and only had IE available.

I have now looked at the page in FireFox and IE and they appear the same to me can you give a better description of where the problem you are seeing is, or have you fixed it.
Sep 8 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: FrankBooth | last post by:
Hello, I have a list of names, and when I click ona name I want the extar info to show and then I want to clcik and hide it again. I have the following HTML which works perfectly if I use one...
6
by: Thresh | last post by:
Hi all, two problems that I've been wrestling with: 1) I've got some images on a site that are links. I've got them set for 2px of padding, and a 1px border. The color changes upon hover. This...
10
by: JayB | last post by:
I'm using a style to hide a skip navigation link but it's not working out correctly. The style is: ..textBrowsersOnly { display: none; } I'm using it in a paragragh and in a navigation link...
23
by: Mat | last post by:
<div id="container"> <div id="main"> <div id="header"> <p class="Address">123 Fake Street, </p> <p class="City">Crazy City, </p> <p class="Province">Ontario </p> <p class="PostalCode">H0H...
7
by: Marc | last post by:
Hi everyone. I am having trouble with a stylesheet in mozilla. It is part of turning a list into a menu: #menu li{ margin: 0; display: inline; vertical-align: bottom;
0
by: Carl | last post by:
I have a main form with navigation buttons on it and a label showing for example Record 1 of 15 using recordsetclone on it and eveything works fine. When I move through the records the record...
0
by: tawxic | last post by:
My code is thus: <div id="navigation"> <ul> <li><a href="#">Home</a></li> <li><a href="#">About Phazm</a></li> <li><a href="#">Services Offered</a></li> <li><a href="#">Request...
4
by: Aaron Gray | last post by:
Hi, I want an "isZZZ" variable that I can use to generate "display: -moz-inline-box;" rather than "display: inline-block;" but in DOM. For this I need to know what version of Mozilla this...
10
by: removeps-groups | last post by:
How to display table and select next to each other? <html> <body> <table border=1 style="display:inline-table"> <tr><td>Hello1</td></tr> <tr><td>Hello2</td></tr> <tr><td>Hello3</td></tr>...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.