Nik, Nikos, whatever your name is, I've seen you asking questions like this over and over again for the last few weeks, here and on newsgroups.

You seem like a nice guy but there is something wrong with your understanding of the three types of code involved. You keep asking about problems with the appearance of your web pages as if Perl/CGI was responsible for the appearance. It isn't. HTML and CSS are responsible for the appearance.

HTML is the language which describes the content of the page. CSS is the language which describes the appearance of the content. Your browser reads the HTML and the CSS and displays the page.

Where does Perl enter the picture? Technically, it doesn't. Your browser doesn't know where the HTML comes from. It could be just a document with no programming at all, or it could be printed out to the browser by a Perl script, or PHP, or any one of a hundred languages. The browser doesn't know and it doesn't care. It just gets the HTML and CSS, and tries to display it.

Your question above seems to be about the appearance of the page. This means that the page being read by the browser doesn't work the way you want it to.

That means one of two things. Either
A) You produced the HTML/CSS you wanted, (with Perl, but remember, it doesn't matter how it was produced), but the page you produced has an error, because you don't understand what the correct HTML and CSS for your desired page. Or,
B) You know how to produce the right HTML and CSS for your page, but you got the Perl wrong and produced something which is not what you wanted.

In neither of those cases, A or B, can we help you by seeing the Perl. We would have to see the full web-page you're trying to create. If you show us the URL of that web page, I can tell you why the HTML/CSS is or isn't working.

I think most of your problems are problems of type A. It's not that you don't know how to create HTML with Perl, it's that you don't know how to create HTML with HTML.

So here's the problem -- this is not an HTML/CSS website. it's a Perl website. Many of us can help you with your HTML/CSS problems, but it's not what this site is for, and your questions may be deleted for not being about Perl.

Here's my suggestion. You post like this:

  1. Here's my web-page: (you put a URL here)
  2. I'm using this Perl script to create it: (you paste the whole script here, with READMORE tags)
  3. You ask us why your page doesn't look the way you want it to
  4. If people tell you "Your Perl is fine, but your HTML/CSS is broken", then you tell us "Here's the HTML I want Perl to create" and show us an example of HTML. We can then help you create the Perl to output the right HTML.
But your main problem will be that you don't know how to do HTML and CSS, so you're always "working blind". The best thing you can do is to use a templating system, get someone else to write the HTML (or learn it yourself) and then use Perl to output the HTML from an external template file. You've been told this over and over...


($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print

In reply to Re: CGI & Formatting by Cody Pendant
in thread CGI & Formatting by Nik

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.