473,386 Members | 1,785 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,386 software developers and data experts.

How to keep this on one line?

Hi,

I have a link and an image and I would like to keep them on the same
horizontal plane. Right now, the image (named "close") is dropping
below the text (that reading "New Tab"), despite the fact there are no
carriage returns. The small bit of code is

<a class="" href="#remote-tab-3"><span><div>
New Tab <span id="moduleCount18" class="moduleCount">(0)</span>
<a href="#" class="closeTab"><img name="close" src="images/
miniclose.GIF" alt="" border="0"></a></div></span></a>

I would prefer not to use TABLEs in crafting a solution. Here is the
larger block in which it appears.

<html>
<head></head>
<body>
<ul>
<li id="tab1"><a href="draw_modules.php?tab_id=1">
General <span id="moduleCount1" class="moduleCount">(7)</span>
</a></li>
<li id="tab6"><a href="draw_modules.php?tab_id=6">
Learning Management <span id="moduleCount6" class="moduleCount">(2)</
span>
</a></li>
<li id="tab18"><a class="" href="#remote-tab-3"><span><div>
New Tab <span id="moduleCount18" class="moduleCount">(0)</span>
<a href="#" class="closeTab"><img name="close" src="images/
miniclose.GIF" alt="" border="0"></a></div></span></a></li>
</ul>
</body>
</html>

Any help is greatly appreciated, - Dave

May 9 '07 #1
2 8702
la***********@zipmail.com wrote:
>
I have a link and an image and I would like to keep them on the same
horizontal plane.
The small bit of code is
In the future, please post a URL, not code.
<a class="" href="#remote-tab-3"><span><div>
New Tab <span id="moduleCount18" class="moduleCount">(0)</span>
<a href="#" class="closeTab"><img name="close" src="images/
miniclose.GIF" alt="" border="0"></a></div></span></a>
Putting a block element (div) within an inline element (span, a) is
invalid. Validate your code and you'll find errors like this yourself.
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/

--
Berg
May 9 '07 #2
In our last episode,
<11********************@e51g2000hsg.googlegroups.c om>,
the lovely and talented la***********@zipmail.com
broadcast on comp.infosystems.www.authoring.html:
Hi,
I have a link and an image and I would like to keep them on the same
horizontal plane. Right now, the image (named "close") is dropping
below the text (that reading "New Tab"), despite the fact there are no
carriage returns. The small bit of code is
><a class="" href="#remote-tab-3"><span><div>
New Tab <span id="moduleCount18" class="moduleCount">(0)</span>
<a href="#" class="closeTab"><img name="close" src="images/
miniclose.GIF" alt="" border="0"></a></div></span></a>
This is the biggest mess in four lines I have seen.
A cannot contain a block element such as DIV. A cannot contain
another A. SPAN cannot contain a block element, namely DIV.

I'm just curious. How did you learn this kind of HTML?

When you have got something that validates (have you heard of validation?)
come back.

--
Lars Eighner <http://larseighner.com/ <http://myspace.com/larseighner>
Countdown: 621 days to go.
==============================
Terrierism alert level: RAT; expected to be raised to BOSTON soon.
May 9 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Nova's Taylor | last post by:
Hi folks, I am a newbie to Python and am hoping that someone can get me started on a log parser that I am trying to write. The log is an ASCII file that contains a process identifier (PID),...
1
by: David | last post by:
This is called "evil hack problem" because my problems are due to me trying to do an evil hack. Please don't judge me, just believe that there are reasons for what I'm trying to do :-) I've got...
8
by: Lisa | last post by:
I have a drop down that defaults to "select" after the page refreshes. How do I keep the selected value in the dropdown field... I've tried EVERYTHING and nothing works! :( <script...
4
by: Chefry | last post by:
I'm trying to set up an off the shelf script and keep getting an error. My host set up the mysql on my site and I changed the variables I had to in the settings.php file but I keep getting the...
4
by: Brian Basquille | last post by:
Hello all, Quick question! How would i keep a point inside a region? For example, the mouse pointer. You should be able to move the mouse around in this region but not anywhere outside it. ...
8
by: lawrence k | last post by:
I've installed Apache 1.3.36 on my Redhat EL 3 machine. Now I'm trying to install PHP 5.1.4. I can not get the ./configure command to work. I keep getting this error: configure: error: Invalid...
3
by: rich | last post by:
I keep getting the error: Warning: in_array(): Wrong datatype for second argument on line 679 here is the code. I declare and fill the array $specprimA = array(); $specprimA=...
4
by: ckirchho | last post by:
Hallo, In a form I have several text or checkbox inputs with their appropriate labels. I'd like to keep label and input together, so I connect them with a &nbsp;, like: <input type="checkbox"...
9
by: kvnsmnsn | last post by:
Over the course of my career I've transitioned from an Ada programmer (am I dating myself?) to a C programmer to a Java programmer and now back to a C programmer with the job I've currently...
4
by: blackice | last post by:
Hello All, i have a Perl Script that deleting Zones from named.conf file and here is the script #!/usr/bin/perl -w use strict; print "please enter the domain name: "; chomp (my...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.