473,782 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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><di v>
New Tab <span id="moduleCount 18" class="moduleCo unt">(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_modu les.php?tab_id= 1">
General <span id="moduleCount 1" class="moduleCo unt">(7)</span>
</a></li>
<li id="tab6"><a href="draw_modu les.php?tab_id= 6">
Learning Management <span id="moduleCount 6" class="moduleCo unt">(2)</
span>
</a></li>
<li id="tab18"><a class="" href="#remote-tab-3"><span><di v>
New Tab <span id="moduleCount 18" class="moduleCo unt">(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 8717
la***********@z ipmail.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><di v>
New Tab <span id="moduleCount 18" class="moduleCo unt">(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************ ********@e51g20 00hsg.googlegro ups.com>,
the lovely and talented la***********@z ipmail.com
broadcast on comp.infosystem s.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><di v>
New Tab <span id="moduleCount 18" class="moduleCo unt">(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
2589
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), username, date, and time field like this: 1234 williamstim 01AUG03 7:44:31 2348 williamstim 02AUG03 14:11:20
1
4485
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 a problem with BaseHTTPServer. I am trying to keep a connection alive so that I can send data down it. At the moment, I have subclassed BaseHTTPRequestHandler like this: def do_POST(self):
8
10255
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 LANGUAGE="JavaScript"> function getServer(form){ var cdoServerName = document.frmSoftware.cdoServerName.options.value;
4
2704
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 following errors Warning: mysql_pconnect(): Access denied for user: 'ODBC@localhost' (Using password: NO) in f:\wwwroot\professionalchef\Back\JobsOnline\mysql.php on line 121 Warning: mysql_pconnect(): Access denied for user: 'ODBC@localhost'...
4
4589
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. How would i go about doing this?
8
6306
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 Apache directory - unable to find httpd.h under /usr/local/apache/include So then I run this command: find / -name httpd.h
3
1791
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= getspecprim($dresstypeid); $primsecA=getprimsec(); Then I do a compare using in Array. I even put in the extra step of making sure I have something in the array with the is sizeof statement.
4
17888
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" name="h" value="1" id="chk"/>&nbsp;<label for="chk">Schreibweisentolerant</label> Apparently this doesn't work in Firefox 2. It works in IExplorer and Opera. As well I tried:
9
2371
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 started. What I'd like to do is write a piece of C code that inputs to the pro- gram a line written to a file. The Java code written below does exactly what I want; it writes the <String"ab cd" to file "Java.Txt" and then reads it back in to variable...
4
1542
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 $targetdomain = <STDIN>);
0
10313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8968
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6735
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.