Adobe Dreamweaver Forums



Last 10 THreads :         OnRequest with CFC (Last Post : BKBK - Replies : 11 - Views : 12 )           »          CS4 crashes (Last Post : kadavila - Replies : 11 - Views : 12 )           »          add number to global variable? (Last Post : twistedpancreas - Replies : 0 - Views : 1 )           »          Accessing events from externally loaded swf file (Last Post : LuigiL - Replies : 2 - Views : 69 )           »          Re: Unloading SWFLoader... BUG??! (Last Post : LuigiL - Replies : 1 - Views : 2 )           »          Problem with navigateToURL to a certain frame (Last Post : Ibsie - Replies : 0 - Views : 1 )           »          html view - how to wrap the text (Last Post : lmckh - Replies : 1 - Views : 2 )           »          Help! Prob with CSS display (Last Post : hnajskmei - Replies : 0 - Views : 1 )           »          DW help urgently needed, lost my connection to site (Last Post : Ronnie MacGregor - Replies : 11 - Views : 12 )           »          Connecting to a Database (Last Post : Ronnie MacGregor - Replies : 11 - Views : 12 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver General
 
Tags: , ,



Reply
  #1 (permalink)  
Old 08-18-2008, 10:42 AM
Andy Bay
 
Posts: n/a
Diggs:
Default Newbie CSS question

Hi!

I am truly sorry for asking such a newbie question, but after searching I
couldn't find a simple answer that I could understand.

What I'm trying to do is simple:

I want to have borders on every table on my page, except the one in the middle
that has my main content inside. I have given this table a ID called
"main_table". Now inside this main table I have several other tables that I
also don't want to give a border to. How would I do this with dreamveawer?

I tried to use a pseudo class selector for the ID="main_table" but it changed
only the look of that specific table, not the smaller tables inside it. And I
tried to apply the property using a tag selector, but this changed the look of
every table on the whole page. How can I tell dreamweaver to change the look of
a specific table AND every table inside it using CSS rules?

I am sorry for asking such a basic question, but I'm really stuck with this
one. If anyone is kind enough to help, I will really appreciate it very much!



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-18-2008, 04:31 PM
SnakEyez02
 
Posts: n/a
Diggs:
Default Re: Newbie CSS question

You have to do this with CSS. In your CSS document do the following:

#main_table table { insert css code here }

If you need to assign this to a class it could also look like:

table.main_table { insert css code here }

Since your main_table is an ID the first example will help you while the
second is a reference for you.

Reply With Quote
  #3 (permalink)  
Old 08-19-2008, 06:37 PM
Malcolm _
 
Posts: n/a
Diggs:
Default Re: Newbie CSS question

On Mon, 18 Aug 2008 09:18:48 +0000 (UTC), "Andy Bay"
<webforumsuser@macromedia.com> wrote:

>Hi!
>
> I am truly sorry for asking such a newbie question, but after searching I
>couldn't find a simple answer that I could understand.
>
> What I'm trying to do is simple:
>
> I want to have borders on every table on my page, except the one in the middle
>that has my main content inside. I have given this table a ID called
>"main_table". Now inside this main table I have several other tables that I
>also don't want to give a border to. How would I do this with dreamveawer?
>



Give each table on the page a class:

so all bar one would have the same class

the one table that is different, give that an ID as well and in the
css for that ID include styles for the border. Because an id has a
higher specificity ( or importance ) it will overrule the style in the
class.

..datatable{ border: 1px solid #CC0000;}
#specialtable{ border:none;}

<table width="100%" class="datatable" id="specialtable">

--

~Malcolm~*...
~*
Reply With Quote


  #4 (permalink)  
Old 08-19-2008, 06:40 PM
Malcolm _
 
Posts: n/a
Diggs:
Default Re: Newbie CSS question

On Mon, 18 Aug 2008 15:06:56 +0000 (UTC), "SnakEyez02"
<webforumsuser@macromedia.com> wrote:

>You have to do this with CSS. In your CSS document do the following:
>
> #main_table table { insert css code here }
>
> If you need to assign this to a class it could also look like:
>
> table.main_table { insert css code here }
>


table#main_table table

???
--

~Malcolm~*...
~*
Reply With Quote
  #5 (permalink)  
Old 08-19-2008, 08:42 PM
Andy Bay
 
Posts: n/a
Diggs:
Default Re: Newbie CSS question

Thank you so much for helping guys!

This solved the issue and I'm no more stuck with this because of your kind help!
Reply With Quote
  #6 (permalink)  
Old 08-19-2008, 08:42 PM
Malcolm _
 
Posts: n/a
Diggs:
Default Re: Newbie CSS question

On Tue, 19 Aug 2008 19:22:00 +0000 (UTC), "Andy Bay"
<webforumsuser@macromedia.com> wrote:

>Thank you so much for helping guys!
>
>This solved the issue and I'm no more stuck with this because of your kind help!



No problem - hope it takes you on the interesting journey of learning
html & css
--

~Malcolm~*...
~*
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
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:11 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk