473,788 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Critique, image slicing for fluid CSS layout tutorial

I am halfway through writing a tutorial on image slicing for fluid CSS
layouts, I would love some feedback on what I've done up until this point:

http://nrkn.com/index.html

I am still writing parts 3 & 4, "optimising the layout" and "alpha
transparency".

Also, does anyone know why I don't get numbers or bullets on my ul and ol in
Internet Explorer (6 or 7)?

Thanks!
Nov 8 '07
18 2511
Well bust mah britches and call me cheeky, on Thu, 08 Nov 2007 07:07:53
GMT dorayme scribed:
I believe that this is the minimum amount of markup necessary to
achieve this effect :) Would love to be proven wrong.

Is the effect worth the internal complexity?

Depends on how you count it. It only has to be done once by the
author, and from then on it can give multiple pleasure. On
principle, this may well be worth it.
That line never works on dates.
>Forcing markup like this:
<div class="hr"><div ><div><hr></div></div></div>
is just unsemantic, even though it is technically valid.

This is yet another issue. But, given that there are limitations
in browser implementations of some css where this sort of thing
can be more easily done in a kosher manner, it is very severe to
never fall to temptation. Perhaps it is an area where a little
individual choice might be allowable.
Despite your rationalization , the least css is the best css. I believe
GTalbot has already resolved the original issue, but Nik is no dummy so the
real problem is the complexity of the styling.

--
Bone Ur
Cavemen have formidable pheromones.
Nov 8 '07 #11
F'ups set to c.i.w.a.s

GTalbot wrote:
>
Also, this universal selector rule
* {
margin: 0;
padding: 0;
}
is a clear sign of over-declaring, over-defining. The use of the
universal selector is very rarely recommendable and is discouraged by
many CSS gurus.
But not all.
By removing all margin and padding on all elements, you are later
force to add them back almost everywhere (for almost all elements like
p, li, headings, etc) instead of relying on browser default
declarations. I personally never do that and I certainly do not
encourage that practice because it invariably lead to over-declaring,
over-defining.
Being later forced to add spacing back to elements is one of the reasons
Eric Meyer *likes* it (see his "Reset Reloaded" article at
<http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/with some
more of the reasoning behind it at
<http://meyerweb.com/eric/thoughts/2007/04/18/reset-reasoning/),
although he does specifically say he doesn't like the * universal
selector, he does do this:

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
etc.

While I see his reasoning, I'm not yet persuaded I want to do this for
every page/site I do. But then, I'm not a CSS guru, so maybe my lack of
experience keeps me unenlightened. So like you, Gérard, I never do it
either.

Other discussions of the "reset all" philosophy can be found via an
article called "CSS Frameworks + CSS Reset: Design From Scratch" at
<http://www.smashingmag azine.com/2007/09/21/css-frameworks-css-reset-design-from-scratch/>
, although that page is best visited with CSS (and JS) turned off.
Ironically enough, with CSS enabled, the page takes forever to load and
respond to scrolling. (Disabling JS just keeps the ad count down.)
--
John
Nov 8 '07 #12
On Nov 7, 11:44 pm, "Nik Coughlin" <nrkn....@gmail .comwrote:
I am halfway through writing a tutorial on image slicing for fluid CSS
layouts, I would love some feedback on what I've done up until this point:
http://nrkn.com/index.html
Nice tutorial, I like the layered header idea. Of course you make the
assumption that the header graphic has something on the right and
left, but the middle can be expanded. But when the header can be
handled like that, this is a nice plan.

Nov 8 '07 #13
On 8 Nov, 06:35, mbstevens <NOXwebmast...@ xmbstevensx.com wrote:
Forcing markup like this:
<div class="hr"><div ><div><hr></div></div></div>
is just unsemantic, even though it is technically valid.
So what? Who says HTML should be entirely semantic.

CSS is _very_ simple and deliberately (read Hakon Lie's PhD thesis)
doesn't include some of the features of other styling langauges.
Amongst these is the ability to do powerful content generation,
sufficient to generate the necessary "hooks" to hang each necesary box
of the rendering model onto. This is particularly evident when
clearing after a sequence of floated boxes.

Some stylesheet languages do support this, but they're more complex
than CSS. CSS gains its simplicity here by requiring the HTML to
already contain a sufficiency of "hook" elements that deliberately
have no smenatic purpose, they're only used (and necessary for)
presentation.

It would be nice to have a purely presentation-free HTML, but not at
the cost of needing to use DSSSL to style it!

Nov 8 '07 #14
On 8 Nov, 05:22, GTalbot <newsgr...@gtal bot.orgwrote:
Web Page Development: Best Practices
Classitis and Divitishttp://developer.apple .com/internet/webcontent/bestwebdev.html
(sobs) 8-(

Nov 8 '07 #15
Travis Newbury wrote:
On Nov 7, 11:44 pm, "Nik Coughlin" <nrkn....@gmail .comwrote:
>I am halfway through writing a tutorial on image slicing for fluid
CSS layouts, I would love some feedback on what I've done up until
this point: http://nrkn.com/index.html

Nice tutorial, I like the layered header idea. Of course you make the
assumption that the header graphic has something on the right and
left, but the middle can be expanded. But when the header can be
handled like that, this is a nice plan.
I would love to expand it to include other scenarios in mind, can you think
of any examples? Thanks!
Nov 8 '07 #16
In article <13************ *@corp.supernew s.com>,
mbstevens <NO***********@ xmbstevensx.com wrote:
dorayme wrote:
In article <13************ *@corp.supernew s.com>,
mbstevens <NO***********@ xmbstevensx.com wrote:
dorayme wrote:
In article <13************ *@corp.supernew s.com>,
mbstevens <NO***********@ xmbstevensx.com wrote:

Nik Coughlin wrote:

I believe that this is the minimum amount of markup necessary to
achieve
this effect :) Would love to be proven wrong.
Is the effect worth the internal complexity?
Depends on how you count it. It only has to be done once by the
author, and from then on it can give multiple pleasure. On
principle, this may well be worth it.
>
I see a kind of smooth scale from pure semantic markup to
clog dancing monkeys. Different people place different points along that
scale where you should just control yourself, or switch over
to Flash or Java Applets. I would resist using the kind of code here
because I would not want to maintain it, and I just find its appearance
unneeded aesthetically. Of course you have to occasionally give in
to clients. (This is also my answer to Andy's reply.)
You have to abstract from particular cases. In plain terms, this
means that you cannot know in advance that it is not worth an
author's time for any site at all. Perhaps we need more examples
of the actual use of code that gets tut tuts from some but which
are plainly nice in effect and hard or impossible to do without.

The fair and substantial complaints are for sites that

(1) Look bloody awful anyway

(2) Work badly in other respects, partly as a result of an
authors over attention to the fancy at the expense of the very
important and unarguable criteria like decent font sizes, screen
flexibility and so on. (Lemme point out that the effect of the
OP's interesting attempts is to at least avoid the often unwanted
fixed nature of images when they are for decoration, this is a
positive for fluid construction).

About maintenance, there are several issues. If an author is in
command of what he has done then it may be very easy for *him* to
maintain it. As for the business of others taking over the site
to maintain it, a sense of perspective is needed. Many of these
fancy things can be commented by the author so the next person
can understand, the commentary might even explain how to dispense
with the fancy parts altogether. Then it is the choice of the new
person (if he has the authority).

--
dorayme
Nov 8 '07 #17
Nik Coughlin wrote:
>
http://nrkn.com/index.html

Also, does anyone know why I don't get numbers or bullets on my ul and ol in
Internet Explorer (6 or 7)?
This might give you a clue:
View Text Size Largest

--
Berg
Nov 8 '07 #18
On 8 Nov, 17:52, mbstevens <NOXwebmast...@ xmbstevensx.com wrote:
I would resist using the kind of code here
because I would not want to maintain it, and I just find its appearance
unneeded aesthetically.
What do you mean by "appearance " ? Appearance as finally rendered on
the page, or appearance of the source code, as a rather specialised
aesthetic view by a code guru?

As simple example, you can code "a picture gallery of blocks" as
either a <tableor as floated <div>s. When rendered, the floated
<div>s are considered "better", as they give a more flexible and fluid
rendering. Looking inside the source though, there's a problem in how
to achieve this: it _does_ require more coding. It requires more CSS
and more HTML. In particular, there's a trade-off in how you clear-
down after a sequence of floats. This can be (sometimes) done by
complex and non-robust work in CSS selectors, or more simply and
reliably overall by adding a sprinkling of extra (but justifiable)
HTML elements.

So which do you prefer? I'm not a great fan of additional HTML
elements to clear up after floats, but how else are you going to do
it? De-evolve the design back to a <table>? Use tricksy CSS that
really is hard to understand? Sloppy work with a ragged bottom edge?
Or do it simply, cleanly and correctly, even if it's a little more
verbose? I know which I prefer.

"Divitis" is a hard condition to diagnose, and it's prone to excess
mis-diagnosis. The number of HTML elements should (as a general
principle) be kept to the minimum that are useful, but not reduced any
further!

Nov 9 '07 #19

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

Similar topics

5
1710
by: Alex Bell | last post by:
I have a fluid header/two column layout at http://www.members.iinet.net.au/~abell1/test/demo10.htm which works with windows MSIE 5.5 and 6, Mozilla, Netscape, and Opera; and Safari but which crashes with Mac MSIE 5. Rather than try to hack the demo to make it work with Mac MSIE 5 I'd like to find a fluid header/two column layout which will work with this browser, and see if I use alternate css files to make the eventual site work with...
49
2403
by: lime | last post by:
I have addressed most of the issues listed in the responses to my last post "Critique CSS layout (1st go - fingers crossed)". I'm rapt with the progress I have made, thanks to all for your past critiques. http://www.limelightstudio.com.au/iss/8/ The issues addressed: - Nav uses <li> now - No horizontal scroll in IE6 at 850-900 pixels
22
3514
by: Jam Pa | last post by:
Once again my big mouth has landed me with a tough job. I have a static CSS layout, where each and every element has been defined by pixel size - lots of them, too! Mostly relative elements, though. Imagine centered column layout, with a header box, and content box with lots of smaller content boxes of different sizes, some spanning several 'rows' or 'columns'. How would you go about changing this kind of static layout into
19
2555
by: TC | last post by:
Are there any good sites or forums for a web critique? I went to alt.html.critique and it's pretty dead.
26
2099
by: JB | last post by:
Hi All, This is my first go at a pure CSS web site and I'd like your comments and suggestions please. The URL is http://www.waukeshapumps.com/ Comments on CSS, design and content very welcome. Thanks in advance,
12
2390
by: JB | last post by:
Hi All, Is it acceptable to use a fixed width vertical navigation column within a fluid 2 or 3 column layout? Example. Left Column (navigation) fixed width of say 180px Right Column (main content) fluid width to fit rest of window
6
10530
by: Seth Illgard | last post by:
Hi, Im writting a custom CMS and everything looks great, except when I see the results in IE. What im trying to do is: *Have an image in a layer (or relative positioned, or just margined). The exact image's coordinates depends in the window size (Fluid design) *The image should display correctly in front(above) another image (header image)
3
2170
by: akapsycho | last post by:
I'm not sure if this is possible, but I thought that my best shot would be to ask here. My site's coming along well at http://www.antiriddle.com and I'm trying to improve on the current design. The layout I'm trying to do is a three-column layout and my markup looks like this: <div id="contentwrapper"> <div id="leftcontent"> </div> <div id="centercontent"> </div> <div id="rightcontent">
1
1789
by: Nik Coughlin | last post by:
For anyone who's interested, or if you'd like to offer any suggestions or critiques of the finished tutorial: http://nrkn.com/index.html
0
9656
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10366
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.