By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,648 Members | 1,198 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,648 IT Pros & Developers. It's quick & easy.

Simulating bordercolor element.....

P: 2
...for noncompliant browsers (Opera/Mozilla). I have been
trying to get a little hack together for class, and am simply
overwhelmed by lack of browser support. Here's what I
started with.


Expand|Select|Wrap|Line Numbers
  1. <frameset cols="240,*" width="10" border=yes
  2.           bordercolor="#0000ff">
  3.  
  4.     <!--// nest //-->
  5.     <frameset rows="75,*" border=yes     
  6.                bordercolor="#0000ff">
  7.  
  8.      <frame name="logo" scrolling="no" noresize
  9.             src="head.htm" marginwidth="1" marginwidth="1" />
  10.  
  11.      <frame name="usemap" scrolling="no" noresize
  12.            src="map.htm" marginwidth="1" marginheight="30" />
  13.  
  14.     </frameset>        
  15.  <frame name="reports" scrolling="no" noresize 
  16.        src="report.htm" />
  17. </frameset>
  18.  

And here's where I am stuck....
http://i49.photobucket.com/albums/f293/dodomeki/02.jpg
Expand|Select|Wrap|Line Numbers
  1. <frameset cols="240,*" width="10" border="yes" scrolling=no>
  2.                     style="border: 2px solid #00f;">
  3.  
  4.     <!--// nest //-->                        
  5.  <frameset rows="75,*" border="yes" scrolling="0">                        
  6.              style="border: 2px solid #00f;">
  7.  
  8.      <frame name="logo" scrolling=no noresize 
  9.                     src="head.htm" marginwidth="1" marginwidth="1" 
  10.                     style="border-bottom: 2px solid #00f;
  11.                      border-right: 2px solid #00f" />
  12.  
  13.      <frame name="usemap" scrolling=no noresize
  14.                 src="map.htm" marginwidth="1" marginheight="30"
  15.                      style="border-top: 2px solid #00f;
  16.                      border-right: 2px solid #00f" />
  17.  
  18.  </frameset>
  19.  
  20.  <frame name="reports" scrolling=no noresize 
  21.                 src="report.htm" marginwidth="0" marginheight="0" 
  22.                 style="border-left: 2px solid #00f;" />
  23.  
  24.  
  25.  
  26. </frameset>
  27.  
This is either of the two codes displayed in Opera/Mozilla
http://i49.photobucket.com/albums/f293/dodomeki/03.jpg

If you can see the images I've pretty much gotten a
nice little hack for my bordercolor taken care of,
BUT I'm still seriously struggleing with getting it
crossbrowser compliant, any help?

~jd
Feb 9 '07 #1
Share this Question
Share on Google+
4 Replies


drhowarddrfine
Expert 5K+
P: 7,435
...for noncompliant browsers (Opera/Mozilla).
Non-compliant? Those two browsers are the most standards compliant browsers available. <editorial>Stop using IE, the worst browser on the planet.</editorial>

I have to leave but will look at your code when I get back in an hour or so.
Feb 9 '07 #2

drhowarddrfine
Expert 5K+
P: 7,435
First, you have the inline styles in the wrong place. style=... must be inside the elements angle brackets.

Second, are you using a proper doctype? Which one? Are you using xhtml?

Third, did you validate your code for errors?
Feb 9 '07 #3

P: 2
First, you have the inline styles in the wrong place. style=... must be inside the elements angle brackets.

Second, are you using a proper doctype? Which one? Are you using xhtml?

Third, did you validate your code for errors?

I actually corrected the style/bracket almost immediatly after
I had posted. No doctype that I know of, though I am using XHTML.
This has not been validated for errors.

I know that Mozilla/Opera are supposed to be highly compliant,
but neither of them seem to like the bordercolor element. The
entire point of me using these inline styles was to simulate the
bordercolor element without having to actually use it in the file.
Feb 10 '07 #4

drhowarddrfine
Expert 5K+
P: 7,435
You must have a proper doctype to use xhtml. You are in quirks mode and it will be like 1998 all over again. See the sticky at the top of this board. After you add a doctype, validate your html and css.
Feb 10 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.