HighDots Forums  

Shadow effect with relative positioning

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Shadow effect with relative positioning in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nik Thomas
 
Posts: n/a

Default Shadow effect with relative positioning - 01-04-2005 , 11:15 AM






I'm beginning to redesign my site to move away from table-based layouts, and
to incorporate a decent amount of cross-browser reliability, graceful
degradation and standards compliance.

I have used the index page at www.loyalwatcher.com/cssindex4.htm to try and
work through as many issues as possible before converting the rest of the
site. This page validates as html 4.01 strict and the CSS at
www.loyalwatcher.com/main.css passes the W3C validator.

When testing the page using Dan Vine's Safari Emulator, the shadowed text
appears in two lines, and the colours aren't as suggested. Is this method
not reliable (and is there an alternative), or do I just need to tweak my
CSS?

Any comments on html/CSS structure or site design also welcomed.

TIA

Nik

--
I wish to be dissociated from your interpretation of my opinions




Reply With Quote
  #2  
Old   
Barbara de Zoete
 
Posts: n/a

Default Re: Shadow effect with relative positioning - 01-04-2005 , 11:28 AM






On Tue, 4 Jan 2005 16:15:32 -0000, Nik Thomas <nik.thomas> wrote:

No answer to your question, but go see
<http://home.wanadoo.nl/b.de.zoete/_test/loyalwatcher.png>. See how the menu on
the left side of your page drops to below all other content? Is this how you
want the page to be?

(WinXP Opera7.54)

--
,-- --<--@ ---- PretLetters: 'woest wyf', met vele interesses: -----------.
Quote:
weblog | <http://home.wanadoo.nl/b.de.zoete/_private/weblog.html> |
webontwerp | <http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html> |
zweefvliegen | <http://home.wanadoo.nl/b.de.zoete/html/vliegen.html> |
`----------------------------------------------------- --<--@ ------------'


Reply With Quote
  #3  
Old   
Spartanicus
 
Posts: n/a

Default Re: Shadow effect with relative positioning - 01-04-2005 , 11:43 AM



"Nik Thomas" <nik.thomas> wrote:

Quote:
I have used the index page at www.loyalwatcher.com/cssindex4.htm to try and
work through as many issues as possible before converting the rest of the
site. This page validates as html 4.01 strict and the CSS at
www.loyalwatcher.com/main.css passes the W3C validator.

When testing the page using Dan Vine's Safari Emulator, the shadowed text
appears in two lines, and the colours aren't as suggested. Is this method
not reliable (and is there an alternative), or do I just need to tweak my
CSS?
Creating a shadow effect this way is silly, it requires 2 content
instances of "Loyal Watcher". Use an image for fancy headers, provide
the text as alt content, and wrap it in an appropriate header markup.
Using 2 h1's is rarely proper markup.

Quote:
Any comments on html/CSS structure or site design also welcomed.
The way you used immediately followed the h1's with an h2 is imo bad
form, the h2 content belongs in the h1.

The header div seems superfluous, style the h1 instead.

The new page falls apart in Opera, the blue background doesn't look good
imo, the yellow/white on white text in the webring box is impossible to
read.

Specifying a windows charset is not very nice.

--
Spartanicus


Reply With Quote
  #4  
Old   
Nik Thomas
 
Posts: n/a

Default Re: Shadow effect with relative positioning - 01-04-2005 , 12:44 PM



Spartanicus.exe failed a Turing test with

Quote:
Creating a shadow effect this way is silly, it requires 2 content
instances of "Loyal Watcher". Use an image for fancy headers, provide
the text as alt content, and wrap it in an appropriate header markup.
Using 2 h1's is rarely proper markup.
Noted.
Quote:
Any comments on html/CSS structure or site design also welcomed.

The way you used immediately followed the h1's with an h2 is imo bad
form, the h2 content belongs in the h1.
Noted.
Quote:
The header div seems superfluous, style the h1 instead.
Okay - I think it's probably from an earlier test where I had
<Header><Nav><Content>. I'll look at that.
Quote:
The new page falls apart in Opera,
Nuts. This is a bit of a lunchtime-at-work hobby and I can't install any
other browsers (NN4.6 is helpfully provided in addition to IE5.5). I'd
hoped to avoid any issues by having a relatively simple structure and using
valid html. Is the reason for this one that you can explain to me easily?

Quote:
the blue background doesn't look
good imo, the yellow/white on white text in the webring box is
impossible to read.
Hmm, I'm seeing Navy on Gray, which is what I had intended. Any ideas why
this might be?

Quote:
Specifying a windows charset is not very nice.
Noted. A quick google suggests ISO-8859-1 might be better?

--
I wish to be dissociated from your interpretation of my opinions

Few men think, but all have opinions.




Reply With Quote
  #5  
Old   
Nik Thomas
 
Posts: n/a

Default Re: Shadow effect with relative positioning - 01-04-2005 , 12:52 PM



Barbara de Zoete.exe failed a Turing test with

Quote:
See how
the menu on the left side of your page drops to below all other
content? Is this how you want the page to be?
No, I'd rather hoped to have the navigation and content side-by-side. :-(

Is this to do with IE and Opera interpreting the

div.Leftnav {
position:absolute;
left:1em;
top:10px;
}

to be with reference to different 'absolute' reference points? If it is,
changing the order to <LeftNav><Header><Main> should sort it out, but leaves
the source-ordering screwy?

Nik
--
I wish to be dissociated from your interpretation of my opinions

Few men think, but all have opinions.




Reply With Quote
  #6  
Old   
Gus Richter
 
Posts: n/a

Default Re: Shadow effect with relative positioning - 01-04-2005 , 01:08 PM



Nik Thomas wrote:
Quote:
When testing the page using Dan Vine's Safari Emulator, the shadowed text
appears in two lines, and the colours aren't as suggested. Is this method
not reliable (and is there an alternative), or do I just need to tweak my
CSS?
Technically speaking: The colors look ok to me. I suggest that you place
your Drop Shadow within a relatively positioned wrapper and place your
two items (z-index is not needed) absolutely within the wrapper this way
with values to your liking:

..wrapper {position:relative;top:20px;height:70px;text-align:center;}
..titleshadow {position:absolute;top:4px;left:3px;color:#992222; width:100%;}
..title {position:absolute;top:0;left:0;color:white;width: 100%;}

<div class=wrapper>
<div class="titleshadow"><h1>Loyal Watcher</h1></div>
<div class="title"><h1>Loyal Watcher</h1></div>
</div>

And place the following item separately next:
<h2 class="center">The Magazine of CURNU Alumni Society</h2>
With this in your stylesheet:
..center {text-align:center;}

You also have to fix up a lot more on the site.

--
Gus


Reply With Quote
  #7  
Old   
Spartanicus
 
Posts: n/a

Default Re: Shadow effect with relative positioning - 01-04-2005 , 02:31 PM



"Nik Thomas" <nik.thomas> wrote:

Quote:
The new page falls apart in Opera,

Nuts. This is a bit of a lunchtime-at-work hobby and I can't install any
other browsers (NN4.6 is helpfully provided in addition to IE5.5). I'd
hoped to avoid any issues by having a relatively simple structure and using
valid html. Is the reason for this one that you can explain to me easily?
Case, LeftNav in the html, Leftnav in the css.

Quote:
the blue background doesn't look
good imo, the yellow/white on white text in the webring box is
impossible to read.

Hmm, I'm seeing Navy on Gray, which is what I had intended. Any ideas why
this might be?
Untested: check class case?

Quote:
Specifying a windows charset is not very nice.

Noted. A quick google suggests ISO-8859-1 might be better?
Should be fine.

--
Spartanicus


Reply With Quote
  #8  
Old   
Nik Thomas
 
Posts: n/a

Default Re: Shadow effect with relative positioning - 01-05-2005 , 03:34 AM



Gus Richter.exe failed a Turing test with

Quote:
You also have to fix up a lot more on the site.
Thanks, Gus. Do you mean there are major issues with the cssindex4 page, or
within the rest of the site? If the latter, then yes, there's plenty to
keep me busy.

Nik

--
I wish to be dissociated from your interpretation of my opinions

Few men think, but all have opinions.




Reply With Quote
  #9  
Old   
Nik Thomas
 
Posts: n/a

Default Re: Shadow effect with relative positioning - 01-05-2005 , 03:38 AM



Spartanicus.exe failed a Turing test with

Quote:
Is the reason for this one
that you can explain to me easily?

Case, LeftNav in the html, Leftnav in the css.

Thank you, I'd forgotten that was a requirement.

Quote:
the blue background doesn't look
good imo, the yellow/white on white text in the webring box is
impossible to read.

Hmm, I'm seeing Navy on Gray, which is what I had intended. Any
ideas why this might be?

Untested: check class case?
The main class elements are okay, but there are a number of case issues to
resolve in the css, so I'll sort these out and see if it fixes anything.

Thanks for you time.

Nik
--
I wish to be dissociated from your interpretation of my opinions

Few men think, but all have opinions.




Reply With Quote
  #10  
Old   
Gus Richter
 
Posts: n/a

Default Re: Shadow effect with relative positioning - 01-05-2005 , 09:46 AM



Nik Thomas wrote:
Quote:
Gus Richter.exe failed a Turing test with


You also have to fix up a lot more on the site.


Thanks, Gus. Do you mean there are major issues with the cssindex4 page, or
within the rest of the site? If the latter, then yes, there's plenty to
keep me busy.

I focused on the drop shadow portion, but the impression I got was that
the page was unfinished and needed work. I may be wrong.

--
Gus


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.