473,287 Members | 1,659 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,287 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 4910
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>...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.