473,399 Members | 2,146 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,399 software developers and data experts.

How to approach css design

I posted this at Macromedia Dreamweaver newsgroup but go no response.

I've been trying to learn CSS. Below is a link to a couple of designs
that I managed to do using absolute position.

http://63.134.232.79/untitled-1.htm

http://63.134.232.79/blog4/default.htm

Now, how do I go about building a new css based site without using
absolute positions and allowing for the area (grey bordered box) to
expand with the content?

I 've read serveral books. All of them seem great for 2 and 3 column
design but what if I want to do designs like this?

I guess what I'm looking for is a tutorial or help that will walk you
through what to do after you create a design in Photoshop.

For example,
1. For a fixed center design create a wrapper.
2. Create a div for each of your elements ie, header, left content,
right content, footer,etc
3. ?

charlie

Jan 20 '06 #1
10 1771
charlie wrote:

I've been trying to learn CSS. Below is a link to a couple of designs
that I managed to do using absolute position.

http://63.134.232.79/untitled-1.htm
This is a basic two-column layout. What's the problem?

You are treating the WWW like a print medium. This is a grave mistake.
About the only thing you control on a web page is content.
You cannot control:
- font
- font size
- color
- screen resolution
- viewport size
You can suggest some of these things with CSS. But the visitor has
ultimate control.
As you have noticed, using position:absolute for everything is a
generally bad plan. Especially since you have created such a rigid
structure. Any change (try changing your browser's font size) and your
layout starts looking sloppy.
Now, how do I go about building a new css based site without using
absolute positions and allowing for the area (grey bordered box) to
expand with the content?
Do not use an image background for borders. Inherently inflexible. Use
the CSS "border" property.
Do not specify the "height" property. That automatically freezes the layout.
I 've read serveral books. All of them seem great for 2 and 3 column
design but what if I want to do designs like this?
Here's a place to start: <http://www.w3.org/2002/03/tutorials>
I guess what I'm looking for is a tutorial or help that will walk you
through what to do after you create a design in Photoshop.

Photoshop is a terrible tool for creating web pages. It is for
manipulating images.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jan 21 '06 #2
charlie wrote:
I posted this at Macromedia Dreamweaver newsgroup but go no response.
Yeah, not too surprising.
It is possible to write clean HTML with supporting CSS with Dreamweaver.
But it is not an easy transition from what I hear.
I've been trying to learn CSS. Below is a link to a couple of designs
that I managed to do using absolute position.

Use HTML 4.01 Strict for all new documents. Transitional is meant as an
intermediate step for converting legacy pages to HTML v4.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jan 21 '06 #3
Thanks for the reply, I think. Like I said, I've read serveral books
on CSS and certainly from doing html I know the difference between
print and the web. I could do the layout tables. I have read the
tutorials at w3.org. The tutorial remind me of the books, except I
didn't have to pay for the w3.org tutorials.

I don't use Photoshop for creating web page. I use Photoshop for
creating the design. I could have easily used a piece of paper. So
the question is still how to approach the layout using CSS.

Thanks,
Charlie


On 2006-01-21 16:59:27 -0500, Jim Moe <jm***************@sohnen-moe.com> said:
charlie wrote:

I've been trying to learn CSS. Below is a link to a couple of designs
that I managed to do using absolute position.

http://63.134.232.79/untitled-1.htm

This is a basic two-column layout. What's the problem?

You are treating the WWW like a print medium. This is a grave mistake.
About the only thing you control on a web page is content.
You cannot control:
- font
- font size
- color
- screen resolution
- viewport size
You can suggest some of these things with CSS. But the visitor has
ultimate control.
As you have noticed, using position:absolute for everything is a
generally bad plan. Especially since you have created such a rigid
structure. Any change (try changing your browser's font size) and your
layout starts looking sloppy.

Now, how do I go about building a new css based site without using
absolute positions and allowing for the area (grey bordered box) to
expand with the content?

Do not use an image background for borders. Inherently inflexible. Use
the CSS "border" property.
Do not specify the "height" property. That automatically freezes the layout.
I 've read serveral books. All of them seem great for 2 and 3 column
design but what if I want to do designs like this?

Here's a place to start: <http://www.w3.org/2002/03/tutorials>
I guess what I'm looking for is a tutorial or help that will walk you
through what to do after you create a design in Photoshop.

Photoshop is a terrible tool for creating web pages. It is for
manipulating images.

Jan 22 '06 #4
I will try to find a better CSS editor for the Mac.

Thanks for the note on using HTML doc types.

Charlie

On 2006-01-21 17:10:53 -0500, Jim Moe <jm***************@sohnen-moe.com> said:
charlie wrote:
I posted this at Macromedia Dreamweaver newsgroup but go no response.

Yeah, not too surprising.
It is possible to write clean HTML with supporting CSS with Dreamweaver.
But it is not an easy transition from what I hear.
I've been trying to learn CSS. Below is a link to a couple of designs
that I managed to do using absolute position.

Use HTML 4.01 Strict for all new documents. Transitional is meant as an
intermediate step for converting legacy pages to HTML v4.

Jan 22 '06 #5
charlie wrote:
I posted this at Macromedia Dreamweaver newsgroup but go no response.

I've been trying to learn CSS. Below is a link to a couple of designs
that I managed to do using absolute position.

http://63.134.232.79/untitled-1.htm

http://63.134.232.79/blog4/default.htm

Now, how do I go about building a new css based site without using
absolute positions and allowing for the area (grey bordered box) to
expand with the content? (snip)
charlie

charlie,

I think the reason you got no answers is that no one knows.

As Jim Moe pointed out, your design (which is very attractive, BTW) is
based on assumptions which are appropriate to print media, but not to
the web. This makes answering the "how do I do this?" question
difficult, if not impossible.

I don't want to discourage your kind of creativity though. So try to
ask yourself some questions about the variables and what should happen
if they change:
- Suppose the user makes the text larger? Smaller? What should the
resulting design look like?
- Suppose the user has a window that is 200px high and 300px wide?
What should the resulting design look like? Suppose it is 1200px high
and 1600px wide? (Sort of like saying, "How can I style this VW beetle
to have three rows of seats and room for 12 suitcases?")

Those are the two variables most likely to change, but you must consider
the others on Jim's list as well.

Until you have defined the desired behavior when the variables change,
you are not ready to start creating the page. A knowledge of CSS (which
you seem to rapidly be getting) will also warn you which behaviors
cannot be created with the current CSS functionality and hence must be
eliminated from your intended design.

Some concerns I see:
- You have fixed-size images which 'contain' text. In one case,
content.jpg, you've allowed for larger (or more) text via a vertical
scroll bar, but made no such allowance for the menu items that are
supposed to stay within menu.jpg. If the text is enlarged, it flops
outside the image.
- The scroll bar referred to above doesn't seem to work. In any case,
it represents a second scroll bar (besides the one for the window) which
can confuse the user, especially someone using a scroll wheel on the
mouse.
- Most of bg.jpg is hidden, but browsers will still download the whole
thing. The saving grace is that you've done a good job of minimizing
the image file sizes.

The biggest problem you will have implementing this design is that you
are using a PhotoShop construct, layers, in an environment that doesn't
support that construct well. Although you can use z-index to create
layers, you will run into problems when you try to positionally relate
things on one layer (a background) with those in another layer (the menu
text). Possible, perhaps, but not easy.

A better approach would be to think of things as being in a single layer
and consisting of a hierarchy of box-like 'container's. Which objects
are logically 'inside' which other objects? Are the inner objects
centered in their containing boxes? If not, what is their spatial
relationship? What is the logical relationship of sibling boxes to each
other (navigation precedes content, perhaps)? How can you show that
relationship in a large window (navigation above and to the left of
content, perhaps) and in a small one (navigation above content), without
introducing horizontal scrolling until the worst-case squeeze?

z-index is useful to give priority to content over decoration. If the
window size is reduced, let boxes containing content obscure those
containing only decoration, so the content remains visible. If two
content boxes conflict (and cannot be stacked, giving each its own real
estate) let the most important one rise to the top.

The reason you aren't finding cookbook instructions for implementing
this kind of layout is that it is going to be, at a minimum, HARD. Most
folks deal with this by creating layouts that are easier to implement.

Good luck,
Chris Beall

Jan 22 '06 #6
charlie wrote:
I will try to find a better CSS editor for the Mac.

You missed the point. Dreamweaver is one of the better WYSIWYG tools.
It, however, is designed to hide the nature of web design from print
designers, reducing the need for print designers to learn something
significantly different from their previous experience. Two of its modes,
table layout and absolute positioning, are a poor match to the web.
I know little about Dreamweaver. Users claim that it is possible to do
layouts with it that produces clean HTML. They also mention it is not
straightforward.
The limitations of Dreamweaver, Frontpage, GoLive, Nvu, etc., are why
most web designers work with a programming editor (with syntax
highlighting) instead. (Although I hear great claims for HTMLKit.)

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jan 22 '06 #7
charlie wrote:
Thanks for the reply, I think. Like I said, I've read serveral books
on CSS and certainly from doing html I know the difference between
print and the web. I could do the layout tables. I have read the
tutorials at w3.org. The tutorial remind me of the books, except I
didn't have to pay for the w3.org tutorials.
I suspect that you do not know much about HTML. Rather you know about
Dreamweaver.
If, having read books and tutorials and you are still finding CSS
mysterious, you need to take a step backward and learn HTML.
I don't use Photoshop for creating web page. I use Photoshop for
creating the design. I could have easily used a piece of paper. So
the question is still how to approach the layout using CSS.

In general the methodology is not so much different from any other
layout medium. You start with the basic markup using HTML. Then start
applying presentation using CSS.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jan 22 '06 #8
In article <2006012210004875249%cschabb@msncom>,
charlie <cs*****@msn.com> wrote:
I will try to find a better CSS editor for the Mac.


You could check Stylemaster from http://www.westciv.com/ which is
available for Macintosh and also Windows. I don't own a copy myself
(yet) but it was the most comprehensive of the CSS editors I tested on
my Mac. Includes a course and tutorial on CSS. Plus the author seems
well known as a CSS advocate and enthusiast.

It warns you when you try constructs that will not work with certain
browsers, so you can do a certain amount of testing browser limits well
before trying the results in a wide variety of actual browsers. I am
thinking that feature alone almost makes it worthwhile (given the
problems I continue to have with Windows IE failing to render my pages
in an even passable manner).

--
http://www.ericlindsay.com
Jan 22 '06 #9
On 2006-01-22 14:58:49 -0500, Chris Beall <Ch*********@prodigy.net> said:
charlie wrote:
I posted this at Macromedia Dreamweaver newsgroup but go no response.

I've been trying to learn CSS. Below is a link to a couple of designs
that I managed to do using absolute position.

http://63.134.232.79/untitled-1.htm

http://63.134.232.79/blog4/default.htm

Now, how do I go about building a new css based site without using
absolute positions and allowing for the area (grey bordered box) to
expand with the content?

(snip)

charlie

charlie,

I think the reason you got no answers is that no one knows.

As Jim Moe pointed out, your design (which is very attractive, BTW) is
based on assumptions which are appropriate to print media, but not to
the web. This makes answering the "how do I do this?" question
difficult, if not impossible.

I don't want to discourage your kind of creativity though. So try to
ask yourself some questions about the variables and what should happen
if they change:
- Suppose the user makes the text larger? Smaller? What should the
resulting design look like?
- Suppose the user has a window that is 200px high and 300px wide?
What should the resulting design look like? Suppose it is 1200px high
and 1600px wide? (Sort of like saying, "How can I style this VW beetle
to have three rows of seats and room for 12 suitcases?")

Those are the two variables most likely to change, but you must
consider the others on Jim's list as well.

Until you have defined the desired behavior when the variables change,
you are not ready to start creating the page. A knowledge of CSS
(which you seem to rapidly be getting) will also warn you which
behaviors cannot be created with the current CSS functionality and
hence must be eliminated from your intended design.

Some concerns I see:
- You have fixed-size images which 'contain' text. In one case,
content.jpg, you've allowed for larger (or more) text via a vertical
scroll bar, but made no such allowance for the menu items that are
supposed to stay within menu.jpg. If the text is enlarged, it flops
outside the image.
- The scroll bar referred to above doesn't seem to work. In any
case, it represents a second scroll bar (besides the one for the
window) which can confuse the user, especially someone using a scroll
wheel on the mouse.
- Most of bg.jpg is hidden, but browsers will still download the
whole thing. The saving grace is that you've done a good job of
minimizing the image file sizes.

The biggest problem you will have implementing this design is that you
are using a PhotoShop construct, layers, in an environment that doesn't
support that construct well. Although you can use z-index to create
layers, you will run into problems when you try to positionally relate
things on one layer (a background) with those in another layer (the
menu text). Possible, perhaps, but not easy.

A better approach would be to think of things as being in a single
layer and consisting of a hierarchy of box-like 'container's. Which
objects are logically 'inside' which other objects? Are the inner
objects centered in their containing boxes? If not, what is their
spatial relationship? What is the logical relationship of sibling
boxes to each other (navigation precedes content, perhaps)? How can
you show that relationship in a large window (navigation above and to
the left of content, perhaps) and in a small one (navigation above
content), without introducing horizontal scrolling until the worst-case
squeeze?

z-index is useful to give priority to content over decoration. If the
window size is reduced, let boxes containing content obscure those
containing only decoration, so the content remains visible. If two
content boxes conflict (and cannot be stacked, giving each its own real
estate) let the most important one rise to the top.

The reason you aren't finding cookbook instructions for implementing
this kind of layout is that it is going to be, at a minimum, HARD.
Most folks deal with this by creating layouts that are easier to
implement.

Good luck,
Chris Beall


Thanks for your candid response. I did purchase Stylemaster and will
begin trying to layout the pages using CSS. Who doesn't love a
challange.

charlie

Jan 23 '06 #10
On 2006-01-22 14:58:49 -0500, Chris Beall <Ch*********@prodigy.net> said:
charlie wrote:
I posted this at Macromedia Dreamweaver newsgroup but go no response.

I've been trying to learn CSS. Below is a link to a couple of designs
that I managed to do using absolute position.

http://63.134.232.79/untitled-1.htm

http://63.134.232.79/blog4/default.htm

Now, how do I go about building a new css based site without using
absolute positions and allowing for the area (grey bordered box) to
expand with the content?

(snip)

charlie

charlie,

I think the reason you got no answers is that no one knows.

As Jim Moe pointed out, your design (which is very attractive, BTW) is
based on assumptions which are appropriate to print media, but not to
the web. This makes answering the "how do I do this?" question
difficult, if not impossible.

I don't want to discourage your kind of creativity though. So try to
ask yourself some questions about the variables and what should happen
if they change:
- Suppose the user makes the text larger? Smaller? What should the
resulting design look like?
- Suppose the user has a window that is 200px high and 300px wide?
What should the resulting design look like? Suppose it is 1200px high
and 1600px wide? (Sort of like saying, "How can I style this VW beetle
to have three rows of seats and room for 12 suitcases?")

Those are the two variables most likely to change, but you must
consider the others on Jim's list as well.

Until you have defined the desired behavior when the variables change,
you are not ready to start creating the page. A knowledge of CSS
(which you seem to rapidly be getting) will also warn you which
behaviors cannot be created with the current CSS functionality and
hence must be eliminated from your intended design.

Some concerns I see:
- You have fixed-size images which 'contain' text. In one case,
content.jpg, you've allowed for larger (or more) text via a vertical
scroll bar, but made no such allowance for the menu items that are
supposed to stay within menu.jpg. If the text is enlarged, it flops
outside the image.
- The scroll bar referred to above doesn't seem to work. In any
case, it represents a second scroll bar (besides the one for the
window) which can confuse the user, especially someone using a scroll
wheel on the mouse.
- Most of bg.jpg is hidden, but browsers will still download the
whole thing. The saving grace is that you've done a good job of
minimizing the image file sizes.

The biggest problem you will have implementing this design is that you
are using a PhotoShop construct, layers, in an environment that doesn't
support that construct well. Although you can use z-index to create
layers, you will run into problems when you try to positionally relate
things on one layer (a background) with those in another layer (the
menu text). Possible, perhaps, but not easy.

A better approach would be to think of things as being in a single
layer and consisting of a hierarchy of box-like 'container's. Which
objects are logically 'inside' which other objects? Are the inner
objects centered in their containing boxes? If not, what is their
spatial relationship? What is the logical relationship of sibling
boxes to each other (navigation precedes content, perhaps)? How can
you show that relationship in a large window (navigation above and to
the left of content, perhaps) and in a small one (navigation above
content), without introducing horizontal scrolling until the worst-case
squeeze?

z-index is useful to give priority to content over decoration. If the
window size is reduced, let boxes containing content obscure those
containing only decoration, so the content remains visible. If two
content boxes conflict (and cannot be stacked, giving each its own real
estate) let the most important one rise to the top.

The reason you aren't finding cookbook instructions for implementing
this kind of layout is that it is going to be, at a minimum, HARD.
Most folks deal with this by creating layouts that are easier to
implement.

Good luck,
Chris Beall


I spent some time trying different layouts. The link below seems to be
the best approach.

http://63.134.232.79/untitled-13.html

It renders correctly in Safari, ok in firefox except that it cuts off
the very bottom of the image of the girl with a camera, Internet
Exporer does not render the css table. I got the idea after reading
this page

http://www.456bereastreet.com/archiv...h_css_part_ii/

So,

I don't care about IE 5 but I do care about IE 6. Is there a fix? If
not, is there another approach for the "content container with a left
and right container"? And footer?

Almost forgot, I need the header to be over the menu so I can add the
javascript for the buttons. I did add z index but it has had no effect.

thanks,
charlie
Jan 26 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Chinook | last post by:
OO approach to decision sequence? --------------------------------- In a recent thread (Cause for using objects?), Chris Smith replied with (in part): > If your table of photo data has...
3
by: Ken Fine | last post by:
I periodically receive a 5+ MB XML document that I hand-load into SQL Server using SQLXML running under a DTS process. Unfortunately, the document is human-created, and (very unfortunately) often...
5
by: ma740988 | last post by:
Select parameters in a vendors API file is as follows: #ifdef __cplusplus typedef void (*VOIDFUNCPTR)(...); /* ptr to function returning void */ #else typedef void (*VOIDFUNCPTR)(); ...
1
by: Mr Gordonz | last post by:
Hi All, I am building a site that will be used by different types of users, and each type of user will do similar, but substantially different, things. My question is a general one: what is the...
2
by: CJM | last post by:
I'm converting a simple query/reporting page from ASP to ASP.NET as a learning tool. A search box is presented to the user where they enter an ID number to search for. The page posts back to...
3
by: C | last post by:
I have been working as a Senir .NET Developer for the past 4 years and worked with VB6 and Classic ASP for 4 years previous to this. I have did an interview recently for an Architect Role. They...
4
by: Andrew Taylor | last post by:
Hi, I've been using PHP for a long time, I have designed and developed a number of mid-range systems. I've always used a procedural approach. I fully understand the concept of OO, I know all the...
5
by: jehugaleahsa | last post by:
Hello: I am trying to find what is the very best approach to business objects in Windows Forms. Windows Forms presents an awesome opportunity to use DataTables and I would like to continue doing...
20
by: mike3 | last post by:
Hi. (Xposted to both comp.lang.c++ and comp.programming since I've got questions related to both C++ language and general programming) I've got the following C++ code. The first routine runs in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.