Hello Everyone-
I to the point of putting together my first Django web app (heck, my first
real web app). It's for a gym where my daughter takes gymnastics (level 7,
thank-you). This one is mostly static content, but I have created a few
tables and it's getting me a feel for putting together a site. There's
still lots to learn, but it's fun and I'm enjoying myself. A lot.
When I'm creating my pages, I have a "base" template, base.html, that has 4
divisions defined: header, sidebar, maincontent, and footer. Each of these
contains a "block" statement. For example, the header looks something line
this (dots added to aid formatting...they're not in the real code):
<div class="header">
....{% block header %}
........Default Header Stuff
....{% endblock %}
</div>
I am using the css file to "float" the sidebar to the left, add the
maincontent and the use css "clear left" on the footer to the look and feel
of the main page. I do have a graphic positioned in the upper left corner
that overlaps the header, sidebar and part of the maincontent. I gives me
the look I want at this point but, before I get too far along, I wanted to
ask if this is the way to set this up? I have an issue when the content of
the maincontent section overruns the area specified for it; it runs right
into the footer (bad). I also notice that neither the unordered list <ul>
of the definition list <dl> format correctly in the maincontent section; the
unordered list lines up right on the left border of the maincontent section
(as does the definition list). The unordered list works fine in the
sidebar, but not in the maincontent.
I'll be happy to post some code, but I'd like some direction on how to set
up a page. I would like a header and sidebar. The footer is optional, but
I think it gives a nice, finished look to the page (and it's where I have
the "Powered by Django" logo :-).
Thanks for any help or direction you can provide,
--greg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---