LiveWire Peer Support Network

Printable Version of Topic "CSS Issue. Help"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Web Design & Search Engine Optimization (http://www.golivewire.com/forums/forum-200-s-0.html)
---- CSS Issue. Help (http://www.golivewire.com/forums/peer-ioyabi-support-a.html)


-- Posted by Another Chance at 10:29 pm on May 4, 2008

I'm using css to position a table in dreamweaver. I position the table exactly how I want it in dreamweaver and when I go to view it in I.E. explorer it's like moved 5-10 pixels to the left. It's stupid and annoying. Why isn't this thing where I put it?

Can someone help?


-- Posted by beautiful flame at 10:37 pm on May 4, 2008

What are you talking about?


-- Posted by JeremyM at 7:30 am on May 7, 2008

Dreamweaver WYSIWYG editing does not render exactly how it will in a browser.

What are you trying to do exactly? Center a table on your page?


-- Posted by Another Chance at 2:55 pm on May 7, 2008

Quote: from JeremyM at 7:30 am on May 7, 2008


Dreamweaver WYSIWYG editing does not render exactly how it will in a browser.

What are you trying to do exactly? Center a table on your page?


Nevermind, I found out it's some dreamweaver fuckup. Screw the layers.


-- Posted by JeremyM at 6:20 pm on May 7, 2008

Ha, layers are soon to be THE web standard, my man.


-- Posted by Another Chance at 7:47 pm on May 7, 2008

Quote: from JeremyM at 6:20 pm on May 7, 2008


Ha, layers are soon to be THE web standard, my man.

I know but they won't act right. I place something right where I want it in dreamweaver and it's displaced in the browser. What kind of shit is that. What can ya do.


-- Posted by JeremyM at 5:54 am on May 8, 2008

Quote: from Another Chance at 10:47 pm on May 7, 2008


Quote: from JeremyM at 6:20 pm on May 7, 2008

Ha, layers are soon to be THE web standard, my man.

I know but they won't act right. I place something right where I want it in dreamweaver and it's displaced in the browser. What kind of shit is that. What can ya do.


Like I said, DW doesn't render the same as a browser. If it does, which is rare, there is usually something else messed up.

Use the CSS panel to edit the positions. Make sure they are absolute and not relative. Is your page center or left aligned?


-- Posted by Another Chance at 11:02 am on May 8, 2008

It's center. I'll try that.


-- Posted by JeremyM at 5:43 am on May 9, 2008

If it's center...do this:

Code:

put ALL content in here

That will be your HTML.

This is your CSS:
Code:
.whatever class {
width: 800px;
left: 50%;
margin-left: -400px;
}

You know what I'm doing there?  

I'm telling the browser to bring everything to the middle of the page at 50%. Then, I'm telling it to subtract 400 pixels from that (half of your width of the whole table).

So whatever your width is, divide that by 2 and put that as a negitive value in your left margin.


-- Posted by Another Chance at 11:26 pm on May 9, 2008

Yeah I get that. Name it then specify it's position using css. I just didn't know the code to use in order to get it done. Thx.


-- Posted by rand0mguy at 9:47 pm on May 10, 2008

Code:
#table_id{margin:0;}
why u using tables? it better be tabular data


-- Posted by allsmiles at 2:52 am on May 12, 2008

yea cos if it isn't tabular data you will be torn into pieces and there will be no cake for you. I mean, it's the biggest sin you know.


-- Posted by JeremyM at 6:12 am on May 12, 2008

Quote: from Another Chance at 2:26 am on May 10, 2008


Yeah I get that. Name it then specify it's position using css. I just didn't know the code to use in order to get it done. Thx.

I just told you the code to get it done.  


www.golivewire.com