...

View Full Version : Moving rows with CSS?



Jake Carter
02-14-2011, 06:28 PM
I'm not sure if this is possible with CSS, but I'm running out of ideas. I've been working on a project using shopping cart software that does NOT allow me to view the PHP code to adjust the structure. However, I do have access to the CSS.

Here is my issue: on http://www.greensurfshop.com there are currency flags at the bottom of the footer. Currently, they are all on their own seperate line. I need them all to be on the same line going from left to right. Is this possible with my CSS?

All suggestions are appreciated!

cyrus709
02-14-2011, 06:32 PM
Does each row have its own individual ID? that would be a simple fix. I take it your working with a table? a possible alternative would be to change the tables id attributes or something to that effect.

In answer to your question. Yes it is possible, but I would need something to work with to tell you how.

Jake Carter
02-14-2011, 06:38 PM
The whole thing is a "code snippet" that I can't access.

Here is the only thing that I have access to:


<div style="float:none;margin-top:30px" id="SideCurrencySelector">
<h3>Change Your Currency</h3>

<dl class="CurrencyList">
--php code snippet--
</dl>
</div>
</div>

Excavator
02-14-2011, 06:43 PM
Hello Jake Carter,
You already style the dd's that hold the flags in that list.
Look at line #339 of your styles.css


Change that CSS to look like this, edits highlighted in red -
dl.CurrencyList {
width: 200px;
margin: 0 auto;
}
.CurrencyList dd{
padding:0px;
margin:0px;
/*clear:both;*/
float:left;
width:50px;
}

Jake Carter
02-14-2011, 06:53 PM
Hello Jake Carter,
You already style the dd's that hold the flags in that list.
Look at line #339 of your styles.css


Change that CSS to look like this, edits highlighted in red -
dl.CurrencyList {
width: 200px;
margin: 0 auto;
}
.CurrencyList dd{
padding:0px;
margin:0px;
/*clear:both;*/
float:left;
width:50px;
}

PERFECT!!!!! Thank you so much!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum