text won't center!!!, using divs, absolute positioning.... |
text won't center!!!, using divs, absolute positioning.... |
May 19 2006, 08:39 AM
Post
#1
|
|
![]() faerie ![]() ![]() Group: Member Posts: 23 Joined: Feb 2004 Member No: 2,762 |
http://xanga.com/nym_ph
CODE <head><script language="javascript"> document.title=('love hangs herself') </SCRIPT> </head> <style type="text/css"> <!-- body {background-color: #000000; font-family: arial; font-color: #FFFFFF; line-height: 10px; font-size: 11px; letter-spacing: 0; cursor: crosshair; scrollbar-arrow-color: #000000; scrollbar-track-color: #000000; scrollbar-shadow-color: #000000; scrollbar-face-color: #000000; scrollbar-highlight-color: #000000; scrollbar-darkshadow-color: #FFFFFF; scrollbar-3dlight-color: #FFFFFF } --> </style> <style type="text/css"> <!-- html, module, table {background-color: transparent; font-family: arial; font-color: #FFFFFF; line-height: 10px; font-size: 11px; letter-spacing: 0; cursor: crosshair } --> </style> <style type="text/css"> <!-- div {background-color: transparent; font-family: arial; font-color: #FFFFFF; line-height: 10px; font-size: 11px; letter-spacing: 0; cursor: crosshair } --> </style> <style type="text/css"> <!-- center {font-family: arial; font-color: #FFFFFF; line-height: 10px; font-size: 11px; letter-spacing: 0; cursor: crosshair } --> </style> <style type="text/css"> div.photostwo {BORDER: 0;WIDTH: 440px; HEIGHT: 500px; overflow: auto; overflow-y: hidden; overflow-x: yes;} div.photosone {BORDER: 0;WIDTH: 440px; HEIGHT: 250px; overflow: auto; overflow-y: hidden; overflow-x: yes;} div.photosportrait {BORDER: 0;WIDTH: 440px; HEIGHT: 320px; overflow: auto; overflow-y: hidden; overflow-x: yes;} </style> <style type="text/css"> .left, .blogbody, table.footer, .standard, .leftmodulefontcolor, td, p { /* edits main text */ font:normal 11px arial; line-height: 10px; color: FFFFFF; letter-spacing: 0; text-width="440" } table.footer TD { /* this makes the footer at the bottom centered */ /* leave it alone unless you know what to do*/ text-align: center; letter-spacing:0; } div.blogheader, .caption { /* edits the dates */ font-family: arial; text-transform: uppercase; font-size: 25px; font-weight: bolder; line-height: 25px; color: F75096; letter-spacing: -2px; background-color: transparent; text-align: right; cursor: crosshair; } a:link, .footernav.link, a.footernav:link, a.footernav:active { /* edits all links */ color:gray; font: 11px arial; text-decoration: italic; line-height:10px; cursor: crosshair; letter-spacing:0px; } a:visited, a.footernav:visited, { /* edits the links that the user has visited */ color:#FFFFFF; font: 11px arial; line-height:10px; cursor: crosshair; text-decoration: italic; letter-spacing:0px;} input, select, textarea, iframe.htmleditor, .textfield, .button { /* this edits the buttons, dropdowns, etc. */ border: 1px solid #000000; font:normal 11px arial; background: FFFFFF; letter-spacing:0px; } table.left { /* this edits the menu module */ border: 0px solid #000000; width:160px; background-color:transparent; } table.blogbody { /* this edits the other the place where the blog is */ border: 0px background-color: transparent; width:440px; text-align: justify; } table.left th { /* on your menu module, this edits the title part of it */ /* like BLOGRINGS, POSTING CALENDAR, etc */ background-color:transparent; font: bold 11px arial; color: #000000; border: 0; width: 160px; } table.left TD { /* on your menu module, this edits the body part of it */ background-image: none; background-color: transparent; border: none; } .blogbody td { width:0px; padding-left:0px; } table.navigation {display: none; } table.search TD, table.search, table.announcements { /* border of search bar (if you have it) */ background-color: transparent; border: 0px solid #FFFFFF; } table.search TD, table.announcements TH { /* this should be left alone */ /* unless you know what to do */ border: 0px solid #FFFFFF; display: none; } table.navigation, table.main { /* the width of your blog with modules */ width: 440px; } hr { /* horizontal divider */ display: none; } } </style> <style type="text/css"> table.footer {display: none;} </style> <script TYPE="text/javascript"> <!-- var filename="http://"; if (navigator.appName == "Microsoft Internet Explorer") document.writeln ('<BGSOUND SRC="' + filename + '">'); else if (navigator.appName == "Netscape") document.writeln ('<EMBED SRC="' + filename + '" AUTOSTART=TRUE WIDTH=144 HEIGHT=60><P>'); // --> </SCRIPT> <NOSCRIPT> <BGSOUND SRC="http://"> </NOSCRIPT> <center><div style="top=150px;"> <img src="http://www.adnihilo.org/p5ych3d31ic/nym_ph.jpg" border="0"> </div> <div style="top=500px; position=absolute;"> s p i n n i n g a message - coldplay it won't center!?!??! i don't know why =( thanks |
|
|
|
![]() |
May 19 2006, 09:22 AM
Post
#2
|
|
![]() We are the cure. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 4,936 Joined: Jan 2004 Member No: 1,456 |
You need to position your DIV, I can't really do it right now but PM me later and I'll fix it for you.
div.photostwo {BORDER: 0;WIDTH: 440px; HEIGHT: 500px; overflow: auto; overflow-y: hidden; overflow-x: yes;} div.photosone {BORDER: 0;WIDTH: 440px; HEIGHT: 250px; overflow: auto; overflow-y: hidden; overflow-x: yes;} div.photosportrait {BORDER: 0;WIDTH: 440px; HEIGHT: 320px; overflow: auto; overflow-y: hidden; overflow-x: yes;} ^ ? |
|
|
|
May 19 2006, 09:50 AM
Post
#3
|
|
![]() faerie ![]() ![]() Group: Member Posts: 23 Joined: Feb 2004 Member No: 2,762 |
hey, i don't think it's got to do with those?
cause those are just for later in the blog entries when i do make a div with those properties...=S thanks though... cause i basically used my old xanga code...but everything was aligned right instead. |
|
|
|
May 19 2006, 09:54 AM
Post
#4
|
|
![]() We are the cure. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 4,936 Joined: Jan 2004 Member No: 1,456 |
I know it doesn't. I was asking what they were.
Your DIV tags aren't finished. <center><div style="top=150px;"> <img src="http://www.adnihilo.org/p5ych3d31ic/nym_ph.jpg" border="0"> </div> <div style="top=500px; position=absolute;"> You need to specify the position and dimensions of your DIV, like: <div style="position: absolute; left: 134px; top: 414px; height: 100px; width: 400px"> |
|
|
|
May 19 2006, 06:27 PM
Post
#5
|
|
![]() faerie ![]() ![]() Group: Member Posts: 23 Joined: Feb 2004 Member No: 2,762 |
hi, but i don't specify the positions if i want it centered...
and i need the text on top of the image, therefore i need to use position: absolute.... thanks oh and those div tags were just for like a scrolling box for convenience when i want them in my entries |
|
|
|
May 19 2006, 08:45 PM
Post
#6
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
.... .... ....
What KIND of text aligned center? Blog text aligned center, whole shebang aligned center, image text aligned center.... Yes. There are many different kinds. Because using center alignment is a lot easier. |
|
|
|
May 20 2006, 12:52 AM
Post
#7
|
|
![]() faerie ![]() ![]() Group: Member Posts: 23 Joined: Feb 2004 Member No: 2,762 |
yes, everything aligned
well the position, i don't want the actual text centered if you know what i mean. i want it to be centered-in line under the image...but i don't want the text ITSELF to be aligned center i did try using just <center> but it didn't work.. i think i do need the position tag in the div cause i want the text to be on top of part of the image thanks |
|
|
|
May 20 2006, 09:19 AM
Post
#8
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
Yeah. So use center alignment. And this. Works out fine. The blog text shouldn't be centered.
[ http://www.xanga.com/oh321its_fishcakey ] CODE <script language="javascript">document.title=('love hangs herself')</SCRIPT>
<style type="text/css"> body { /* edits the entire page */ background-color: #000000; background-image: url(http://adnihilo.org/p5ych3d31ic/backgroundnymph.jpg); background-repeat: repeat-y; background-position: center; overflow-x: hidden; font-family: arial; font-color: #FFFFFF; line-height: 10px; font-size: 11px; letter-spacing: 0; cursor: crosshair; scrollbar-arrow-color: #000000; scrollbar-track-color: #000000; scrollbar-shadow-color: #000000; scrollbar-face-color: #000000; scrollbar-highlight-color: #000000; scrollbar-darkshadow-color: #FFFFFF; scrollbar-3dlight-color: #FFFFFF; } .module, table { /* edits the tables */ background-color: transparent; font-family: arial; font-color: #FFFFFF; line-height: 10px; font-size: 11px; letter-spacing: 0; cursor: crosshair; } div { /* edits the div styling */ background-color: transparent; font-family: arial; font-color: #FFFFFF; line-height: 10px; font-size: 11px; letter-spacing: 0; cursor: crosshair; } center { /* edits the center tag */ font-family: arial; font-color: #FFFFFF; line-height: 10px; font-size: 11px; letter-spacing: 0; cursor: crosshair; } .left, .blogbody, table.footer, .standard, .leftmodulefontcolor, td, p { /* edits main text */ font:normal 11px arial; line-height: 10px; color: FFFFFF; letter-spacing: 0; } table.footer TD { /* this makes the footer at the bottom centered */ /* leave it alone unless you know what to do*/ text-align: center; letter-spacing:0; } div.blogheader, .caption { /* edits the dates */ font-family: arial; text-transform: uppercase; font-size: 25px; font-weight: bolder; line-height: 25px; color: F75096; letter-spacing: -2px; background-color: transparent; text-align: right; cursor: crosshair; } a:link, .footernav.link, a.footernav:link, a.footernav:active { /* edits all links */ color:gray; font: 11px arial; text-decoration: italic; line-height:10px; cursor: crosshair; letter-spacing:0px; } a:visited, a.footernav:visited, { /* edits the links that the user has visited */ color:#FFFFFF; font: 11px arial; line-height:10px; cursor: crosshair; text-decoration: italic; letter-spacing:0px; } input, select, textarea, iframe.htmleditor, .textfield, .button { /* this edits the buttons, dropdowns, etc. */ border: 1px solid #000000; font:normal 11px arial; background: FFFFFF; letter-spacing:0px; } table.left { /* this edits the menu module */ border: 0px solid #000000; width:160px; background-color:transparent; } table.blogbody { /* this edits the other the place where the blog is */ border: 0px background-color: transparent; width:440px; text-align: justify; } table.left th { /* on your menu module, this edits the title part of it */ /* like BLOGRINGS, POSTING CALENDAR, etc */ background-color:transparent; font: bold 11px arial; color: #000000; border: 0; width: 160px; } table.left TD { /* on your menu module, this edits the body part of it */ background-image: none; background-color: transparent; border: none; } .blogbody td { width:0px; padding-left:0px; } table.search TD, table.announcements TH { /* this should be left alone */ /* unless you know what to do */ border: 0px solid #FFFFFF; display: none; } table.navigation, table.main { /* the width of your blog with modules */ width: 440px; } /* photo divs */ div.photostwo {BORDER: 0;WIDTH: 440px; HEIGHT: 500px; overflow: auto; overflow-y: hidden; overflow-x: yes;} div.photosone {BORDER: 0;WIDTH: 440px; HEIGHT: 250px; overflow: auto; overflow-y: hidden; overflow-x: yes;} div.photosportrait {BORDER: 0;WIDTH: 440px; HEIGHT: 320px; overflow: auto; overflow-y: hidden; overflow-x: yes;} /* disables stuff */ hr, table.footer, table.navigation {display: none; } </style> <script TYPE="text/javascript"> <!-- var filename="http://"; if (navigator.appName == "Microsoft Internet Explorer") document.writeln ('<BGSOUND SRC="' + filename + '">'); else if (navigator.appName == "Netscape") document.writeln ('<EMBED SRC="' + filename + '" AUTOSTART=TRUE WIDTH=144 HEIGHT=60><P>'); // --> </SCRIPT> <NOSCRIPT> <BGSOUND SRC="http://"> </NOSCRIPT> <center><div style="top=150px;"> <img src="http://www.adnihilo.org/p5ych3d31ic/nym_ph.jpg" border="0"> </div> <div style="margin-top:0px; margin-right: 20px; position:absolute;"> s p i n n i n g a message - coldplay |
|
|
|
![]() ![]() |