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

One word per line

I recently came across a site
http://maetl.coretxt.net.nz/?m=xhtml-design-patterns which displays as
one word per line in Opera and Safari, but as a normal page (with a
different font) in Firefox (all on Macintosh). Can anyone explain just
what the CSS used to style that page is doing to manage the one word per
line trick?

--
http://www.ericlindsay.com
Jan 8 '06 #1
2 3518
I don't know if its a trick as much as it is a mistake :) Looking thru
the css, some things are wierd. This is in the content div,
'width:expression("60%");'. I'm not sure if opera or safari will get
that "expression" style right.

Adam

Jan 9 '06 #2
Els
Eric Lindsay wrote:
I recently came across a site
http://maetl.coretxt.net.nz/?m=xhtml-design-patterns which displays as
one word per line in Opera and Safari, but as a normal page (with a
different font) in Firefox (all on Macintosh). Can anyone explain just
what the CSS used to style that page is doing to manage the one word per
line trick?


It's not a trick, it's just bad coding.

Opera (and apparently Safari too) needs a width on an absolute
positioned object if you want another absolute positioned element
inside it without problems.

If you just give #content-main a width, say 600px, page looks fine.
But since it's absolute positioned on 140px from the right, a window
narrower than 740px would have the front of each sentence cut off.

Instead of position:absolute, a simple margin- and/or padding-right
would have given the same result, only it would work in Opera as well.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jan 9 '06 #3

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

Similar topics

8
by: Frost | last post by:
Hi All, I am a newbie i have written a c program on unix for line by line comparison for two files now could some one help on how i could do word by word comparison in case both lines have the...
7
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
1
by: somesh | last post by:
Hi! I am someswara rao working in Darkhorse as SE. I am creating a website. I need some help for calculating no of line in a given word document somesh678@yahoo.co.in k.somesh@gmail.com ...
5
by: Carstonio | last post by:
I use ASP to display links to Word documents on an intranet. Is there a way in ASP to do text searches on the documents' contents? I want the results to have the link to the Word document plus two...
11
by: elrondrules | last post by:
Hi Am pretty new to python and hence this question.. I have file with an output of a process. I need to search this file one line at a time and my pattern is that I am looking for the lines...
12
by: defience | last post by:
Hi, I'm new to Python and need some help with this program. I'm trying to take 10 jumbled words at a time and have the program unscramble them and then print them out like: word1,word2,word3, etc. ...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
0
by: sayamishiraj | last post by:
how can i insert data into word line by line from the datagrid. i want to show the data in a single line for each data in the datagrid. i am using vb 6.
1
by: vin4tony | last post by:
Anyone plz help to open a word document using asp.net.I used a code ..but it shown access denied...Can anyone help me.. my error is Access is denied. Description: An unhandled exception occurred...
10
by: dave | last post by:
Hello, I made a function that takes a word list (one word per line, text file) and searches for all the words in the list that are 'shifts' of eachother. 'abc' shifted 1 is 'bcd' Please take...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
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,...
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...
0
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...

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.