HighDots Forums  

Centering issue..

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Centering issue.. in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Grosz
 
Posts: n/a

Default Centering issue.. - 11-03-2005 , 05:10 PM






On the page: http://www.scootervilleusa.com/Scooters/Tform.cfm?PID=3
you will see a color bar in one of the table cells. I would like it to
be centered. I have the following CSS that goes along with that cell.....

prodTable td #Color {
margin: 0 auto;
}
#prodTable #Color div {
position: relative;
width: 25px;
clear: right;
float: left;
display: list-item;
margin-right: 5px;
}

But for one reason or another, I can't get the information in the cell
to be formatted. I've tried a <div align="center"> as well, still not
doing it.

What am I missing here, I'm sure its something simple......

Reply With Quote
  #2  
Old   
jandf
 
Posts: n/a

Default Re: Centering issue.. - 11-03-2005 , 05:38 PM






This worked for me:

<td><div id="Color">
<div align="center"></div>
<div style="background: rgb(255, 0, 0) none repeat scroll 0%;
-moz-background-clip: initial; -moz-background-origin: initial;
-moz-background-inline-policy: initial;" align="center"></div>

Steve Grosz wrote:
Quote:
On the page: http://www.scootervilleusa.com/Scooters/Tform.cfm?PID=3
you will see a color bar in one of the table cells. I would like it to
be centered. I have the following CSS that goes along with that cell.....

prodTable td #Color {
margin: 0 auto;
}
#prodTable #Color div {
position: relative;
width: 25px;
clear: right;
float: left;
display: list-item;
margin-right: 5px;
}

But for one reason or another, I can't get the information in the cell
to be formatted. I've tried a <div align="center"> as well, still not
doing it.

What am I missing here, I'm sure its something simple......

Reply With Quote
  #3  
Old   
Steve Grosz
 
Posts: n/a

Default Re: Centering issue.. - 11-03-2005 , 05:43 PM



I'm not sure what most of those codes are for......such as:

-moz-background-clip: initial; -moz-background-origin: initial;
Quote:
-moz-background-inline-policy: initial;"
jandf wrote:
Quote:
This worked for me:

td><div id="Color"
div align="center"></div
div style="background: rgb(255, 0, 0) none repeat scroll 0%;
-moz-background-clip: initial; -moz-background-origin: initial;
-moz-background-inline-policy: initial;" align="center"></div

Steve Grosz wrote:
On the page: http://www.scootervilleusa.com/Scooters/Tform.cfm?PID=3
you will see a color bar in one of the table cells. I would like it
to be centered. I have the following CSS that goes along with that
cell.....

prodTable td #Color {
margin: 0 auto;
}
#prodTable #Color div {
position: relative;
width: 25px;
clear: right;
float: left;
display: list-item;
margin-right: 5px;
}

But for one reason or another, I can't get the information in the cell
to be formatted. I've tried a <div align="center"> as well, still not
doing it.

What am I missing here, I'm sure its something simple......

Reply With Quote
  #4  
Old   
jandf
 
Posts: n/a

Default Re: Centering issue.. - 11-03-2005 , 06:06 PM



Neither am I. What I did was save your page as a web page complete and
opened it in DW then put my curser in the cell and centered it. Looked
great in preview mode. I had never copied a page in that manner before
so those <div> tags must be a result of that.

Sorry.

Fred

Steve Grosz wrote:
Quote:
I'm not sure what most of those codes are for......such as:

-moz-background-clip: initial; -moz-background-origin: initial;
-moz-background-inline-policy: initial;"

jandf wrote:

This worked for me:

td><div id="Color"
div align="center"></div
div style="background: rgb(255, 0, 0) none repeat scroll 0%;
-moz-background-clip: initial; -moz-background-origin: initial;
-moz-background-inline-policy: initial;" align="center"></div

Steve Grosz wrote:

On the page: http://www.scootervilleusa.com/Scooters/Tform.cfm?PID=3
you will see a color bar in one of the table cells. I would like it
to be centered. I have the following CSS that goes along with that
cell.....

prodTable td #Color {
margin: 0 auto;
}
#prodTable #Color div {
position: relative;
width: 25px;
clear: right;
float: left;
display: list-item;
margin-right: 5px;
}

But for one reason or another, I can't get the information in the
cell to be formatted. I've tried a <div align="center"> as well,
still not doing it.

What am I missing here, I'm sure its something simple......

Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Centering issue.. - 11-03-2005 , 06:16 PM



<td><div id="Color" style="width:110px;margin:0
auto;float:none;position:static;">

<div
style="background:#FF0000;position:static;width:20 px;height:20px;"></div>

<div
style="background:#0000FF;position:static;width:20 px;height:20px;"></div>

<div
style="background:#000000;position:static;width:20 px;height:20px;"></div>

<div
style="background:#F7E214;position:static;width:20 px;height:20px;"></div>

<br style="clear:both;"></div></td>


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"jandf" <jandf (AT) hotmail (DOT) com> wrote

Quote:
Neither am I. What I did was save your page as a web page complete and
opened it in DW then put my curser in the cell and centered it. Looked
great in preview mode. I had never copied a page in that manner before so
those <div> tags must be a result of that.

Sorry.

Fred

Steve Grosz wrote:
I'm not sure what most of those codes are for......such as:

-moz-background-clip: initial; -moz-background-origin: initial;
-moz-background-inline-policy: initial;"

jandf wrote:

This worked for me:

td><div id="Color"
div align="center"></div
div style="background: rgb(255, 0, 0) none repeat scroll
0%; -moz-background-clip: initial; -moz-background-origin:
initial; -moz-background-inline-policy: initial;" align="center"></div

Steve Grosz wrote:

On the page: http://www.scootervilleusa.com/Scooters/Tform.cfm?PID=3
you will see a color bar in one of the table cells. I would like it to
be centered. I have the following CSS that goes along with that
cell.....

prodTable td #Color {
margin: 0 auto;
}
#prodTable #Color div {
position: relative;
width: 25px;
clear: right;
float: left;
display: list-item;
margin-right: 5px;
}

But for one reason or another, I can't get the information in the cell
to be formatted. I've tried a <div align="center"> as well, still not
doing it.

What am I missing here, I'm sure its something simple......



Reply With Quote
  #6  
Old   
jandf
 
Posts: n/a

Default Re: Centering issue.. - 11-03-2005 , 06:32 PM



Steve,

Is this better? I took out the extra code that was added by DW.

<td><div id="Color">

<div align="center"></div>
<div style="background: rgb(255, 0, 0) none repeat scroll 0%"></div>

<div style="background: rgb(0, 0, 255) none repeat scroll 0%"></div>

<div style="background: rgb(0, 0, 0) none repeat scroll 0%"></div>

<div style="background: rgb(247, 226, 20) none repeat scroll 0%"></div>

</div></td>

Fred

Steve Grosz wrote:
Quote:
On the page: http://www.scootervilleusa.com/Scooters/Tform.cfm?PID=3
you will see a color bar in one of the table cells. I would like it to
be centered. I have the following CSS that goes along with that cell.....

prodTable td #Color {
margin: 0 auto;
}
#prodTable #Color div {
position: relative;
width: 25px;
clear: right;
float: left;
display: list-item;
margin-right: 5px;
}

But for one reason or another, I can't get the information in the cell
to be formatted. I've tried a <div align="center"> as well, still not
doing it.

What am I missing here, I'm sure its something simple......

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 - 2009, Jelsoft Enterprises Ltd.