Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Bidding Directory   Improve your ranking, submit to directories   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 03-27-2007, 10:31 AM   #1 (permalink)
Inactive
 
Join Date: 03-27-07
Posts: 4
iTrader: 0 / 0%
Latest Blog:
None

rlowe82 is liked by many
Table Issues w/ Browsers in Dreamweaver

Hey everyone,

When I create tables in Dreamweaver and preview them in Safari, they appear exactly as I want them to. When I preview them in Firefox, they retain none of the attributes I set for them, such as border color or background color. Why would this be?

I'm using Mac OS X 10.4.8.

Thanks!

www.thisisrichard.com
rlowe82 is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 03-27-2007, 10:55 AM   #2 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 17,962
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
Seems like this will be more of a coding issue. Moved to the coding forum.

Could you post a screenshot of what it looks like in *shudder* safari?
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
chıcgeeĸ @ flickr
chicgeek is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-27-2007, 11:04 AM   #3 (permalink)
Inactive
 
Join Date: 03-27-07
Posts: 4
iTrader: 0 / 0%
Latest Blog:
None

rlowe82 is liked by many
Here's the screenshot:

www.thisisrichard.com/safariscreenshot.tiff

I have a white table around my name and links, which also have a black table around them. Seem that in Firefox, it's just gray.

Thanks!
rlowe82 is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-27-2007, 02:17 PM   #4 (permalink)
Inactive
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 678
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
Firefox is behaving as expected when trying to colorize the borders of a standard table. (Safari has a different way of doing things ... ) There are 3 'borders' within each segment of a table border: highlight, shadow and cellspacing. By default (as in your case), the "bordercolor" attribute only affects the highlight part of the border.

Here's a little reworking of your code to accomplish what you want:
Code:
<style type="text/css"> body { background-color: #cccc99; } .outertable { border-style:solid; border-color:white; border-width:2px; } .innertable { border-style:solid; border-color:black; border-width:2px; background-color:#cccccc; } .menu { border-bottom-style:solid; border-bottom-color:black; border-bottom-width:2px; } </style> ... <table cellspacing="0" class="outertable"> <tr> <td width="274">...</td> </table> <table width="116" height="156" cellspacing="0" class="outertable"> <tr> <td width="274" height="154"> <-removed bgcolor <table width="112" cellspacing="0" class="innertable"> ... <tr> <td class="menu"><a href=..><img src=..></a></td> <tr> <td class="menu"><a href=..><img src=..></a></td> ... <tr> <td><a href=..><img src=..></a></td> ...etc.
The LAST cell in the menu does NOT get the class assignment ... its border is provided by the table itself. Also note that I removed the "border=1" attributes from each of the tables, because they force the 3-D border, and you don't want that ...
StupidScript is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-27-2007, 02:38 PM   #5 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 17,962
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
SS: You have more patience than I do today.

rlowe: Let us know how you fare.
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
chıcgeeĸ @ flickr
chicgeek is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-27-2007, 02:40 PM   #6 (permalink)
Inactive
 
Join Date: 03-27-07
Posts: 4
iTrader: 0 / 0%
Latest Blog:
None

rlowe82 is liked by many
Wow. Thanks for that. That helps tremendously in my learning borders with CSS.

Thanks
rlowe82 is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-27-2007, 02:58 PM   #7 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 17,962
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
CSS = your best friend.

Well, not completely true. If that's true, then you might need some help. But it is a great tool!
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
chıcgeeĸ @ flickr
chicgeek is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-27-2007, 03:18 PM   #8 (permalink)
Inactive
 
Join Date: 03-27-07
Posts: 4
iTrader: 0 / 0%
Latest Blog:
None

rlowe82 is liked by many
One more thing: do you have to write this code for each page? Or is there a way to have every page link to a file that tells it how to be laid out?

Thanks!
rlowe82 is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-27-2007, 03:56 PM   #9 (permalink)
Inactive
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 678
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
Create a new stylesheet file containing just the definitions (everything between the <style..> and </style> tags) above, then remove the "empty" <style...></style> tags.

Assuming your stylesheet (CSS) file is named "style.css", you would want to place the stylesheet reference below within the HEAD section of each HTML page:
Code:
<link rel="stylesheet" type="text/css" href="style.css" />
Then, on each page, simply refer to the class definitions as noted above. i.e. anything that you want to have a white, 2px solid border (tables, DIVs, whatever) gets assigned a "class='outertable'" attribute.

Regarding the title/menu group, yes, you would need to put that on each page, as in your example. As an alternative (one which I use everywhere I can), you may be able to use server-side language like PHP, ASP or SSI to "include" the title/menu group in each page ... but that's a bit off-topic.

Last edited by StupidScript : 03-27-2007 at 04:04 PM. Reason: spazzing out
StupidScript is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Center Table with CSS all browsers? JuggoPop Coding Forum 24 03-15-2008 02:21 PM
Showing data from a table based on infos from another table! anarchoi Coding Forum 0 06-16-2007 04:58 PM
Move table up to the top in dreamweaver? erinkuzma Coding Forum 3 03-19-2007 08:05 AM
Table Alignment Issues tosaha Coding Forum 7 08-25-2006 10:57 AM
Table Issues sweatnspice Coding Forum 4 05-24-2004 09:02 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 11:17 PM.
© Copyright 2008 V7 Inc