Forum Moderators: not2easy

Message Too Old, No Replies

new to tableless css

tableless css

         

Bratt

1:36 am on May 25, 2007 (gmt 0)

10+ Year Member



I am trying my hand at tableless css. But in my quest, I am running into a slight problem i can't explain. I have a page that I have the css in, it is an <html xmlns page with the <style type="text/css">
<!--
tags at the top in the header... this page works perfect...

Here is my issue... I took the information inside the style tag and placed it in a separate css file and saved it, took it out of the html, and saved it, and the page isn't showing right, the tables aren't lined up right.

Why would it be different if it is embedded in the page or attached as a separate page?

rocknbil

4:31 am on May 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard Bratt, do you have this line in your head section, and is it correct?

<link rel="stylesheet" type="text/css" href="path/to/your.css">

Bratt

1:59 pm on May 25, 2007 (gmt 0)

10+ Year Member



I have <link href="mocktry1.css" rel="stylesheet" type="text/css" /> in my header yes. The code i have in the mocktry1.css is identically copied from the original code that was on the html page, but the columns don't line up like they do with the code in the page.

dreamcatcher

4:45 pm on May 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You don`t by any chance have the style tags in the css do you?

dc

Bratt

4:58 pm on May 25, 2007 (gmt 0)

10+ Year Member



no, i didn't copy those parts, just what needed to be there. I used topstyle, and made a new page and copied the code in.

Xapti

9:23 pm on May 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have encountered similar kinds of problems in somewhat related situations, but not exactly like this.
I will guess the blatant scenario that they were actually not identical.
Go back now and paste your .css file style sheet back into your inline style include on the page, and see if it's the same still.
That will probably ensure that the problem isn't because they were/weren't different.

what doctype are you using?

I took the information inside the style tag and placed it in a separate css file and saved it, took it out of the html, and saved it
What's with the redundancy? is it just a typing mistake, or clarification, or what?

Which browsers have you tested the page display change for? Waht were the results?

[edited by: Xapti at 9:30 pm (utc) on May 25, 2007]