473,765 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<OL type="1"> and IE

Hi

In a css page I have the following:

[CSS]
..OLC{float:lef t; width:150px;tex t-align:center; }
OL{ list-style-position:inside ;}
LI{ height:160px;}

[/CSS]

and in the site page:

[HTML]

....
<div class="OLC">
<OL type="1" start="1">
<LI><br><a href="an_image" ><img src="thumbnail_ img"></a><br><a
href="some_page .html">page_tit le</a></li>
.....
</OL>
</div>
<div class="OLC">
......same as above
</div>
[/HTML]

I want to have columns of thumbnails numbered and horizontally
aligned.
Well, it works right in FF and OP but not in IE6-7.

Instead of:
number
image
link-name

it gives:
image
link-name
1


If I remove "height:160 px" for LI, it works but I lose the horiz
alignment.

What to do to have IE work properly ??

Thanks

Apr 26 '07 #1
3 4720
Scripsit Bill:
In a css page I have the following:
Why don't you post the URL?
<div class="OLC">
<OL type="1" start="1">
<LI><br><a href="an_image" ><img src="thumbnail_ img"></a><br><a
href="some_page .html">page_tit le</a></li>
....
</OL>
Why are you using the apparently redundant div element? Why are you using
invalid markup (img with no alt)? Why do you think (in the markup and in the
heading, but not in the text your message) that type="1" (the default) is
essential here? Why are you using <br(and not CSS) apparantly to create
vertical spacing at the start of a list item?
I want to have columns of thumbnails numbered and horizontally
aligned.
What do you mean by "horizontal ly aligned"? Do you want to use a table but
refrain from doing so?
If I remove "height:160 px" for LI, it works but I lose the horiz
alignment.
I have a feeling that the height of your images might matter too. But you
gave no URL.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Apr 27 '07 #2
Hi
Why don't you post the URL?
because it's not on an intranet.
>
<div class="OLC">
<OL type="1" start="1">
<LI><br><a href="an_image" ><img src="thumbnail_ img"></a><br><a
href="some_page .html">page_tit le</a></li>
....
</OL>

Why are you using the apparently redundant div element? Why are you using
It was there because at first it was used to enclose other objects too
which were later removed but the div stayed. But it doen't make any
difference for the OL.

invalid markup (img with no alt)? Why do you think (in the markup and in the
The image is self explanatory.
heading, but not in the text your message) that type="1" (the default) is
essential here? Why are you using <br(and not CSS) apparantly to create
vertical spacing at the start of a list item?
To have the index, the image and the link superposed.

I have a feeling that the height of your images might matter too. But you
You're right, I fixed the height of the images and added
overflow:hidden , removed the height property from LI and it worked.

Thanks Jukka

Apr 28 '07 #3
Scripsit Bill:
>Why don't you post the URL?
because it's not on an intranet.
Really? Why would that matter? What matters is that you post a URL pointing
to a document on the Internet, the World Wide Web, also called "www". (Did
you notice it in the name of this group?)
>Why are you using the apparently redundant div element? Why are you
using

It was there because at first it was used to enclose other objects too
which were later removed but the div stayed. But it doen't make any
difference for the OL.
When trying to debug something, the first step should be to remove redundant
complexities. Then you could start removing complexities that you actually
need, in order to see which of them triggers the problem.
>invalid markup (img with no alt)? Why do you think (in the markup
and in the

The image is self explanatory.
To a person who does not see it? Do you have any idea of why alt attributes
are needed?
>heading, but not in the text your message) that type="1" (the
default) is essential here? Why are you using <br(and not CSS)
apparantly to create vertical spacing at the start of a list item?

To have the index, the image and the link superposed.
Try re-reading my question, paying attention to the "and not CSS" part.
Using <bris a coarse and unreliable way of affecting vertical spacing -
and we _are_ in a CSS group.
You're right, I fixed the height of the images and added
overflow:hidden , removed the height property from LI and it worked.
Too bad we cannot see whether you really fixed a problem or created a new
one.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Apr 28 '07 #4

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

Similar topics

5
2800
by: Eric A. Forgy | last post by:
Hello, I am just learning Java and am trying to write a method that does something like //=========================================== public Static List find(double array,double val,String relationalOp) { List list = new ArrayList();
6
77507
by: Tony Marston | last post by:
The code <a href="..." target="_blank">...</a> will not validate as XHTML STRICT because of the 'target' tag, so how do I achieve the same result by moving it to a CSS file? I cannot find anything which allows me to specify 'target=' on an anchor tag. -- Tony Marston http://www.tonymarston.net
2
7632
by: Shaun | last post by:
Hello! I have a quick question regarding CSS and having it applied to all elements. I am trying to eliminate the gap between a paragraph and a list that usually occurs in html and I've found away to do that with this code: <p>a</p> <ul style="margin-top: -20; padding-top: 0"> <li>1</li>
2
8125
by: Laermans_k | last post by:
Hi, Does anyone have a solution to use the <input type="file" id="filechooser"> and the <input type="submit" id="submitbutton"> in 1 button click? I've already tried to create a javascript function behind the submitbutton click. In this function i call the filechooser.click() event and after this i call the functions to activate the progressbar of the upload. This doesn't seems to work:(
5
4641
by: z. f. | last post by:
sorry about the previous post, by mistake not completed. i have an asp.net page with the line <%@ OutputCache Duration="30" VaryByParam="none" %> but when i make requests to the page with different parameters, i get different result, but i tries to check if i set the VaryByParam to none there should be the same output for different parameters, so why does it not work?
2
6851
by: andrew007 | last post by:
I do xml / xslt transformation using asp.net but I found any value (w/xml format) in xml node html-encoded to &lt and &gt format if it's > or < tag. Since I have sub xml data in a parent xml node as a value. Check out the following problem. I want to convert the value in <WpDatesXml> node to have a valid "<" and ">" instead of &lt or &gt format so that I can use this xml for another use. Please help! <NewDataSet> <Table1>
1
1648
by: easy.lin | last post by:
.... <object id="10">door</object> .... I try to write this in clipse XSD editor <element name="object" type="string"> <attribute name="id" type="int"></attribute> </element> but get wrong message....
1
6186
by: tilt | last post by:
Hello, I use an object element to replace the iframe element in ie, like this: <object id="x_obj" data="http://.../" type="text/html"> <iframe name="x_if" id="x_if" src="http://.../">
3
7843
by: joe | last post by:
Is it OK to have multiple: <script type="text/javascript" src="funcs1.js"></script> <script type="text/javascript" src="funcs2.js"></script> <script type="text/javascript" src="funcs3.js"></script> ? And I need to use similarly multiple CSS:
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9951
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
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...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
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
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.