473,663 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting mad about CSS - Example from Bulletproof Webdesign

Hi!

Out of the book from Dan Cederholms (Bulletproof Webdesign - german ed.) I
tested chapter 4 (creativ floating). For no CDR is included I wrote the code
from the text in the book (images and according text is taken from
tv-spielfilm.de). But it don't work for me in the same way as Dan tells in
the book.
I tested it with different browsers on Windows 2000. It should show three
pictures with a white frame (build though the padding 4px) and a closing
border with 1px and an according text with a heading on top of the text
positioned opposite of the picture neither left or right. Dan uses
Definition lists for the markup.
Now it looks allmost as it should in Opera 7.1, Netscape 6,7.1+8.0 and
Firefox. Only the heading is moved appart from the text. So that not the
heading is positioned on top only as it should.
But in IE 6.0 allmost nothing is correct: The main div is not positioned in
the middle of the browsers window as it should with margin-left/right: auto.
The fontsize is one step bigger as in the other browsers (to big). The white
border of the images is missing (ignoring padding 4px). Its awfull! Is there
a hack that IE6 needs to works correctly? And whats wrong with the heading?
Is there anyone, who please could test the example?
Here is the complete example including the CSS:

http://www.asys-it.de/webtest/defliste_o.html

Thanks for help! Tom
Apr 30 '06 #1
5 1624

"Thomas Bügel" <no****@am3d.de > schrieb im Newsbeitrag
news:44******** **@news.arcor-ip.de...
Only the heading is moved appart from the text. So that not the
heading is positioned on top only as it should.
I had a lttle mistake in the css declaration! The position of the heading is
now correct!
But in IE 6.0 allmost nothing is correct: The main div is not positioned in the middle of the browsers window as it should with margin-left/right: auto. The fontsize is one step bigger as in the other browsers (to big). The white border of the images is missing (ignoring padding 4px). Its awfull! Is there a hack that IE6 needs to works correctly?


The faults of the IE6 are further valid!

Apr 30 '06 #2
OK! I discovered the fault!
I'm using Golive CS2 for building websites. Golive writes in the first line
of new XHTML-pages: <?xml version="1.0" encoding="iso-8859-1"?> and that
line makes that IE6 renders the page in the wrong way as I wrote it in my
posting from yesterday. I discovered that by testing of different settings
of that page, but don't know neither why Golive CS2 sets that code in the
first line of a new XHTML document nor why IE6 don't like it (the other
browser ignore it). Has someone an explanation?

With regards - Tom
Apr 30 '06 #3

Thomas Bügel wrote:
OK! I discovered the fault!
I'm using Golive CS2 for building websites. Golive writes in the first line
of new XHTML-pages: <?xml version="1.0" encoding="iso-8859-1"?> and that
line makes that IE6 renders the page in the wrong way as I wrote it in my
posting from yesterday. I discovered that by testing of different settings
of that page, but don't know neither why Golive CS2 sets that code in the
first line of a new XHTML document nor why IE6 don't like it (the other
browser ignore it). Has someone an explanation?

With regards - Tom


XHTML is an application of XML. XML requires an XML declaration as the
first line in any conforming document. Since XHTML is an application
of XML, it must also follow this rule. The problem with this is that
IE6 incorrectly renders XHTML pages that have an XML declaration as
their first line.

Chris

May 2 '06 #4
Chris Lieb wrote:
XML requires an XML declaration as the
first line in any conforming document.


In some circumstances, but not always.
--
Johannes Koch
Spem in alium nunquam habui praeter in te, Deus Israel.
(Thomas Tallis, 40-part motet)
May 2 '06 #5
Chris Lieb wrote:
XML requires an XML declaration as the first line in any conforming document.


Untrue - and distinctly harmful in the case of XHTML.

An XML declaration is only required in XML where it's used by a
side-effect to sniff out the encoding of the document. On the web you
have HTTP and HTTP headers, so there's never any need to sniff for
this.

Don't use it for XHTML.

May 3 '06 #6

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

Similar topics

2
6907
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on a type mismatch. It is positively because of the boolean(java primitive)parameter. It goes fine if I change this parameter to int or String. This inteface has a lot more methods which works fine, it is just the
4
13387
by: Don W. | last post by:
Is it possible to open a browser window from a javascript for the purpose of gathering user input on a form and then use data from the form in the javascript? How do you get the data from the form into the script? Don W.
4
38508
by: Jean-Marie Delapierre | last post by:
Hi, I have two files in a directory. one called toto.txt with the following content : 1 2 3 4 5
3
2200
by: Ron Brennan | last post by:
Good morning. I have a page displayed and want to get information from a user using showModalDialog, and then send a request to the server for more information based on the user info from the showModalDialog - without changing the displayed page. Is this possible? Thanks.
20
2023
by: richk | last post by:
I'm in the process of teaching myself, or shall i say in the process of expanding my knowledge in webdesign. I do have my own site up and I love doing it. Right now I do it as a hobby. I would like the opportunity to possibly make money doing it someday. I know I will have to know alot more than what I know now. I havent dabbed into XML I's dabbed alittle bit into DHTML. I I know I need more experaince in scripting and webapplication...
37
12728
by: ajay | last post by:
How to make a web page getting refreshed after a given time interval automatically. HTML Code plz. Tx Ajay
7
1855
by: gerryLowry::Ability Business Computer Services {KC | last post by:
"Getting Back Your Visual Basic 6.0 Goodies" by Billy Hollis, 2003-5-14, states: "Getting a Forms Collection Visual Basic 6.0 developers are often fond of looping through the currently loaded forms in an application to find out something, such as if a particular form it loaded, or how many of a particular type of form are loaded. Windows Forms does not include a Forms collection, however, so gaining such functionality in Visual Basic...
6
1478
by: rich | last post by:
I would like to learn more about webdesign. I have my own website that I have handcoded. I do have some javascripts on the site that I have downloaded and have customized and edited to use on my website. I would like to further my knowledge in creating more complex pages. However the question is. If I want to be a successful webdesigner am I going to have to learn how to program my own scripts. I have tried to teach myself programming...
3
2491
by: Cartoper | last post by:
I am working on a kiosk system. It is packaged software (I am a ISV). I know my customers are going to be running on a number of different resolutions and I want the kiosk to have the same proportional layout. In other words, if at 1024x768 the font takes up 7% of the height, I want it to be 7% when at 1600x1200. I have learned from a html newsgroup that there is no easy way to do this in a browser so I am figuring that I will have to...
0
8436
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
8345
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,...
0
8858
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
8771
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...
1
6186
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
4182
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...
1
2763
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
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1757
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.