RE: stylesheet layout (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


ritarun -> RE: stylesheet layout (3/23/2004 10:29:36)

The line numbers--- how do you add them automatically in the text editor. I am using Notepad. I can't image that they are entered manually.




lilblackgirl -> RE: stylesheet layout (3/23/2004 10:51:43)

Other than manually adding them in, i discovered apps like Top Style adds the numbers automatically. And once you use the app, all style sheets will load in it automatically, so you'll always see the lines. Plus, it's a great app, very user friendly and is really helping me learn CSS.




c1sissy -> RE: stylesheet layout (3/23/2004 10:55:28)

quote:

ORIGINAL: ritarun

The line numbers--- how do you add them automatically in the text editor. I am using Notepad. I can't image that they are entered manually.


Using Notepad light, what I did was this
quote:

1 body {style information
}

Then I just saved it as a text file, and opened it up, worked fine.

I'm sure that you could add -line 1 body- etc... and since you are only doing this as a reference to your normal css file, I'm sure that you could number this with whatever notes etc.. that you seem to feel is necessary.

lilblackgirl, I think that maybe what she is looking for is to have the numbers inside of her file? Unless I am mis-understanding what it is that she wants?




ritarun -> line number question- ANSWERED (3/23/2004 11:53:23)

Clarification- I was talking about adding line numbers for reference only in the coding. It does not show up except in the text view mode. I have just been told that Notepad does not have this feature. A more robust text editor (such as Notetab PRO, TextPad or a specialized application like TopStyle) is used and is the only way that it can be done.

Reason I wanted the numbers? I want to go thru line by line and figure out what each tag does and make notes and to be able to ask questions by e-mail such as "what does the coding in lines 48-55 do?" or "line 88 to 99 are for the top header"

Make more sense? Anyway, my question has been answered. Thanks.




lilblackgirl -> RE: stylesheet layout (3/23/2004 11:53:32)

wouldn't adding numbers inside the style sheet mess up how it works?

i.e., wouldn't her html code be looking for
<div class="1 navigation"></div>

if the css stated:
1 .navigation
{
etc.
????
Granted, i'm speaking in total ignorance here, but this just seems logical to me if nothing else. [:D]

i'll shut up now,
Lil




ritarun -> RE: line number question- ANSWERED (3/23/2004 11:56:12)

Example:

[image]local://upfiles/2526/9BB424BDB8674BE3B89C32EBB3B1D4FB.gif[/image]




c1sissy -> RE: stylesheet layout (3/23/2004 11:56:26)

Hi lilblackgirl,
Actually what she would be doing is creating a css file for reference, which would be the one that has the numbers in it. This numbering would not go into her user css file, the one that she would link to her files for the web. This would just be a sort of recording keeping type css file that has notations more then what you would noramally put into a css comment. And this would create a way for her to go line by line with numbers if she wishes. (lol, I hope that I am understanding what it is that she wants)




ritarun -> RE: stylesheet layout (3/23/2004 12:15:31)

You guys were posting while I was writing and finding an example![:D]

Deb I think you misunderstood a little bit. I do not want to add the line numbers to the master.css file. What I wanted was to be able to add the line numbers to the coding to ask questions and learn:

[snipped section for example only]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>


<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="description" content="add your site description here">
<meta name="keywords" content="add your search engine keywords here separated by commas">
<link rel="stylesheet" type="text/css" href="xxxxx.css">
<!-- what ever is in the .css style sheet will control the style cascading of the whole web. This is an external style sheet. Change the style sheet and it changes the whole thing.-->

</head>

<body>

<div align="left">
<!-- This Ends the Top Table Area (this comment was orignally in the template right here)

Was it in the correct location?-->

<!-- Exactly what is the Top Table Area? -- just the top row of the table that says Add your Special Text and/or Company-->
<!--Why would this be different from the rest of the Top Table?? just so you could use a different font?? And should have the comment be placed below the /div tag? and what is being
aligned left??-->

</div>

<div align="center">

<center> <!-- what is being centered? The complete table? on the page??-->


I was under the impression that by figuring out a way to add the line numbers my "virtual mentors" could see exactly where my questions were and could refer to them by numbers. The comments are really learning questions to understand.

With the right program I can add the numbers to the CSS also and not have it affect the styles.

[image]local://upfiles/2526/03317875E5474D9DBCA4BE7108DB490D.gif[/image]




c1sissy -> RE: stylesheet layout (3/23/2004 13:08:29)

Ritarun,
I wasn't suggesting that you add the numbers to the normal master css, I was suggesting that you create 2 css files. One as your master, the other with the lines with the numbers in it.

I think I sort of got what it was that you wanted to do, lol, I think, but I was suggesting that you do two files(?) one as a master and a duplicate with the lines that are numbered. I guess that would be your sample that you would need?




Giomanach -> RE: stylesheet layout (3/25/2004 7:39:41)

IF you use Dreamweaver to create the Stylesheets, it has a bar on the left hand side that has the line numbers for you. I find them annoying, but thats just me. Having line reference numbers can be handy. On the back-up copy with the number you don't have to put numbers on every line, just every 5 or so. It's only for your reference, so it won't matter




Donkey -> RE: stylesheet layout (3/25/2004 14:11:24)

I use MatrixY2K (which was originally reccomended by our wise hairy member many moons ago) it also numbers your lines and it makes validation "repairs" very easy for an amateur like me.

You can download it from here.




Page: <<   < prev  1 [2]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625