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

HTML & CSS to MS Word

Hi,

I have my resume in good old HTML with Tables and CSS.

I have two stylesheets, one to format for the web and the other for when I load the resume up into word - all works fine.

Now - I want to have another go at a new version - this time I want to rid myself of tables and do everything with CSS.

The code works fine in IE6 and Firefox but I load the HTML up into word it fails miserably!
The top 'box' when viewed in a browser correctly shows three 'cells' in a row (10%, 60% and 30% width) but when I load into word the widths all change to 100% and three separate lines

Here is the code
<CSS>
div.box { width: 100%; margin: 0px; }
div.box1 { width: 10%; border: 0px; float:left; background-color: gray; }
div.box2 { width: 60%; border: 0px; float:left; background-color: blue; }
div.box3 { width: 30%; border: 0px; float:right; background-color: green; text-align: right; }
div.boxline { width: 100%; border: 0px; background-color: yellow; font-style: italic }

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Playing with CSS:1</title>
<link rel="stylesheet" type="text/css" href="web.css">
</head>
<body>
<!-- <div class="box"> -->
<div class="box1">Text 1</div>
<div class="box2">this is some more text</div>
<div class="box3">This is the end</div>
</div>
<div class="boxline"><b>test</b>&nbsp;
This is some text that should spread the whole width of the screen and wrap really nicely without shrinking the other 'cells'. The only trouble is I have to make sure the text wraps around on monitors with a higher resolution!
<br />Hey look no tables!
</div>
</body>
</html>

I think the problem is MS word - I also tried an example from w3schools - looks fine on the browser - but word screw it up!

Any one have any ideas I dont want to have to edit two resume's!

Many thanks
Jul 26 '06 #1
0 1996

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: yawnmoth | last post by:
say i have a for loop that would iterate through every character and put a space between every 80th one, in effect forcing word wrap to occur. this can be implemented easily using a regular...
5
by: Raju V.K | last post by:
I am developing a web site which requires a set og unique values be transferred between pages and server many times. There fore i decided to put the values in an array so that only one reference to...
9
by: ME | last post by:
can someone tell me how to make this first one work??, located here: http://javascript.about.com/library/scripts/blshowdatetime.htm#examplesource This second one, well, dreamweaver eats the code,...
2
by: Holger Butschek | last post by:
Hi folks, first of all, I'm absolutly new to javascript. I have designed a html-form and am trying to path parameters with the suffix of i.e. ?Seminartitel=hallowelt in the url. In the head...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
7
by: Xah Lee | last post by:
Summary: when encountering ex as a unit in css, FireFox (and iCab) did not take into account the font-family. Detail: http://xahlee.org/js/ff_pre_ex.html Xah xah@xahlee.org ∑...
12
by: Trish | last post by:
I just had a bad experience using MS Word as an HTML editor. It bloated more than 200% so I could barely recognize the essential statements; and it introduced more than 14,000 errors. Also,...
10
by: jpollack | last post by:
I don't know JavaScript but have been tasked to write a script that will change the value of a Boolean variable to the word "Yes" on a table row. I have been trying to achieve this based on my...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
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,...
0
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...
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...

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.