Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 19th, 2005, 06:29 AM
jules213 jules213 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 13 jules213 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 43 sec
Reputation Power: 0
Couple of questions re: CSS

hi there,

bit of a newcomer to web building, and having now finished a site which is xhtml transitional validated (except for the <embed> on the first page for the embedded .rm file... which from what i've seen around the net, is insurmountable).

But I have a couple of questions which are baffling me. Here is a link to the home page:

www.youth-tv.co.uk

1) For some reason, on IE, the site is aligned to the left hand side, whereas on NN and Mozilla it is centred, as it should be according to the CSS script. Any reason why?

2) At the bottom, on the bottom bar, I have some logo images, which i would like centered in the bottom bar along with the text, but can't for the life of me figure out how.

Any help, advice, pointers, etc, gratefully appreciated.

Thanks,

Jules

Reply With Quote
  #2  
Old June 19th, 2005, 06:55 AM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: I have emerged from the place of spells and fairies
Posts: 97 ChiefWigs1982 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 17 h 35 m 12 sec
Reputation Power: 4
Quote:
Originally Posted by Jules
(except for the <embed> on the first page for the embedded .rm file... which from what i've seen around the net, is insurmountable).
Use <object> and you can validate it as strict.

Yeah, IE's crap, it doesn't like centering with auto margins. Add
text-align:center to the BODY class, and text-align:left;
to the center class to compensate. That should center it all in
both browsers...

Centered how? Horizontally or vertically? Add align="absmiddle"
to the images.

Reply With Quote
  #3  
Old June 19th, 2005, 07:02 AM
jules213 jules213 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 13 jules213 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 43 sec
Reputation Power: 0
Thanks for that. Glad to others don't like IE either. i will try out your suggestions, thanks. And for the records, sorry, i meant aligned in the middle of the bottom bar.

With regards to the <embed> <object>, what i have discovered (and i think i'm right here), is that by removing the <embed> (which is nested in the <object> as a default as per Real and well everyone), then the video simply vanishes from NN and Moz. I think it is to do with IE and Active X.

Just for curiosity's sake, this is the code I use:

<object id='rvocx' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'
width="260" height="185">
<param name='src' value="http://youth-tv.co.uk/vids/promo.ram" />
<param name='autostart' value="true" />
<param name='controls' value='imagewindow' />
<param name='console' value='video' />
<param name='loop' value="false" />
<embed src="http://youth-tv.co.uk/vids/promo.ram" width="260" height="185"
loop="FALSE" type='audio/x-pn-realaudio-plugin' controls='imagewindow' console='video' autostart="true">
</embed></object>

As I said, removing the <embed> seems to make the video vanish, but any suggestions as to the code I could try so it works cross browser appreciated.

Anyway, thanks again for the CSS pointers, will give them a go.

jules

Reply With Quote
  #4  
Old June 19th, 2005, 07:11 AM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: I have emerged from the place of spells and fairies
Posts: 97 ChiefWigs1982 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 17 h 35 m 12 sec
Reputation Power: 4
Add text-align:center; to your baseline class.

Here's an article on embedding Flash using a strict doctype. Not
quite what you want, but it's similar...

http://www.alistapart.com/articles/flashsatay/

Reply With Quote
  #5  
Old June 19th, 2005, 09:13 AM
jules213 jules213 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 13 jules213 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 43 sec
Reputation Power: 0
Thanks again for your time guys. I've managed to get the pages centred on IE & NN, and somehow made the logos look neater at the bottoom.

Read the Flash article, and do you know what, I can't be bothered. Validation be damned with regards to <embed>. The video file works across browsers and until W3C sort it out (or Gates gives up Active X) then....

I did send them W3C a mail asking what the deal was though, as it seems this is a question no-one has a proper answer to.

Anyway, thanks again.

Jules

Reply With Quote
  #6  
Old June 19th, 2005, 09:16 AM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: I have emerged from the place of spells and fairies
Posts: 97 ChiefWigs1982 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 17 h 35 m 12 sec
Reputation Power: 4
Heh, no problem, glad to have helped.
Comments on this post
edwinbrains agrees: rep for helping

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > Couple of questions re: CSS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT