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

other problem with IE

Ok, IE don't support CSS2 selector; thanks for your answers.
I'm trying another way but it work only in firefox and not in IE. Is
about the position:relative property.
I will be more cleare next:
I must create a test (with question and answer) and for the answer list
I have the following xhtml code:
....
<span class="answer">
<img
src="http://www.google.com/url?sa=D&q=http://groups.google.com/img/watched_y.gif"
class="image" />
<input type="radio" class="radio"/>
<span class="itemnum">1</span>
<span class="content">HERE COULD BE IMAGE , SPAN(WHIT TEXTCHILDNODES),
ECC</span>
</span>
<span class="answer">
<img
src="http://www.google.com/url?sa=D&q=http://groups.google.com/img/watched_y.gif"
class="image" />
<input type="radio" class="radio"/>
<span class="itemnum">2</span>
<span class="content">HERE COULD BE IMAGE , SPAN(WHIT TEXTCHILDNODES),
ECC</span>
</span>
....

and the following CSS:
..answer{
display:block;
}
..image{
display:inline;
}
..radio{
display:inline;
}
..itemnum{
display:inline;
}

..content{
display:block;
position:relative;
top:-10px;
left:40px;
}

The scope is align the image, radio, and number with the content (the
childs of content span must be all display:block)
In IE it should work?
I have strange result...
help please!
thanks

Dec 15 '05 #1
1 1208
st**********@tiscali.it wrote:
Ok, IE don't support CSS2 selector; thanks for your answers.
I'm trying another way but it work only in firefox and not in IE. Is
about the position:relative property.
I will be more cleare next:
I must create a test (with question and answer) and for the answer list
I have the following xhtml code:
...
<span class="answer">
<img
src="http://www.google.com/url?sa=D&q=http://groups.google.com/img/watched_y.gif"
class="image" />
Missing the required alt attribute.
<input type="radio" class="radio"/>
<span class="itemnum">1</span>
Should this perhaps be a <label> element instead?
<span class="content">HERE COULD BE IMAGE , SPAN(WHIT TEXTCHILDNODES),
ECC</span>
</span>
<span class="answer">
<img
src="http://www.google.com/url?sa=D&q=http://groups.google.com/img/watched_y.gif"
class="image" />
<input type="radio" class="radio"/>
<span class="itemnum">2</span>
<span class="content">HERE COULD BE IMAGE , SPAN(WHIT TEXTCHILDNODES),
ECC</span>
</span>
...

and the following CSS:
.answer{
display:block;
}
So why not use <div> instead of <span>?
.image{
display:inline;
}
.radio{
display:inline;
}
.itemnum{
display:inline;
}
inline is the default for those elements so why bother?
.content{
display:block;
position:relative;
top:-10px;
left:40px;
}
Looks reasonable, though again why not use a <div> and isn't the top:
-10px running the risk of successive lines overlapping? In general
margins are better than relative positioning for many situations.
Though without an actual page to look at it's impossible to say whether
that's the case here.
The scope is align the image, radio, and number with the content (the
childs of content span must be all display:block)
In IE it should work?
I have strange result...


Please post a URL so that we can see what the "strange result" is.

Steve

Dec 16 '05 #2

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

Similar topics

3
by: dan glenn | last post by:
(PHP 4.3.4) THIS IS DRIVING ME NUTS! I have a website where I offer members their own bit of webspace to use and am coding a very simple 'filemanager' that allows a user to upload, delete, and...
22
by: bearophileHUGS | last post by:
Here are some questions and suggestions of mine that I've collected in the last weeks on the language (please note that some (most?) of them are probably wrong/useless/silly, but I've seen that...
7
by: Jonathan Fine | last post by:
Giudo has suggested adding optional static typing to Python. (I hope suggested is the correct word.) http://www.artima.com/weblogs/viewpost.jsp?thread=85551 An example of the syntax he proposes...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
1
by: bscofield | last post by:
Hi, I'm a db app. developer and I am re-writing some helps in javascript & HTML. The Javascript is for form flow and design and HTML just to display the helps. I use a seperate app. development...
0
by: Sarah Akers | last post by:
GgF ----gL5cJ72EqiGIQ0SK65Rz Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html> <head> <style type=3D"text/css">.eyebrow { FONT-WEIGHT: bold; FONT-SIZE: 10px; TE=
6
by: gavin | last post by:
hi guys, I have a query about c# event handling that should be obvious I am sure - but I am confused :-) Lets say I have two classes. One is a user control with a tabcontrol on it The other...
8
by: Vanga Sasidhar | last post by:
I have four computers. One computer - Win XP Two computers - Win 98 One computer - Win ME I designed some pages in my computer having Win XP operating system. I installed dot net...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
28
by: Larax | last post by:
Best explanation of my question will be an example, look below at this simple function: function SetEventHandler(element) { // some operations on element element.onclick = function(event) {
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.