Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1532 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Css problem (Ill be asking for help quite often)

Thread title: Css problem (Ill be asking for help quite often)
Closed Thread    
    Thread tools Search this thread Display Modes  
08-18-2005, 11:09 PM
#1
Stan is offline Stan
Status: Member
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 269
iTrader: 0 / 0%
 

Stan is on a distinguished road

Send a message via AIM to Stan

  Old  Css problem (Ill be asking for help quite often)

ok, in 1024x768 www.redorigin.net looks fine in firefox and i believe ie as well, however when the res changes the text is all screwed up. and if you align the text to center... its not like perfectly aligned in the center its all ****eyed...


can anyone tell me how i can either center align it so it still lines up evenly, or how to make it work like it is in all browsers,


heres the css:

a {
text-decoration: none
}

a:link {color: #2d2d2c; text-decoration: none; }
a:visited {color: #2d2d2c; text-decoration: none; }
a:hover {color: #fff; text-decoration: underline; }
a:active {color: #2d2d2c; }

body {
background: #fff url(bg.gif) repeat-y 50% 0px;
background-attachment: fixed;
}

#header {
text-align: center;
margin-left: 25px;
}

#navlist {
list-style-image: url(bullet.gif);
}

ul li {
font: bold 14px Tahoma, Times New Roman, Times, serif;
color: #902f2f
text-align: left;
margin-left: 11cm;

08-19-2005, 02:31 AM
#2
Stan is offline Stan
Status: Member
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 269
iTrader: 0 / 0%
 

Stan is on a distinguished road

Send a message via AIM to Stan

  Old

ok i changed the margin to %'s and i think its fixed now.

08-19-2005, 03:36 AM
#3
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old

I was about to suggest setting the margin-left: 50% earlier, but i am a ccs beginner and was afraid it would be wrong and would wase your time sorry. but good job.

08-19-2005, 12:00 PM
#4
Jonny is offline Jonny
Status: Member
Join date: Feb 2005
Location: UK
Expertise:
Software:
 
Posts: 335
iTrader: 0 / 0%
 

Jonny is on a distinguished road

  Old

Btw, that huge background you did is not needed. You should crop the image just until it reaches the shadow.

Then just use this for you body css:
Code:
background: #732626 url('bg.gif') repeat-y center center;
Also, you can crop the background image so its only 1px in height which will help you save some bandwidth and save your users some loading time. (not much granted, but every little helps )

[edit] Btw, a better way to do it would be to have a "holder" or "container" div. Basically, You would have a div that would be the same width as the width of your cropped background image, (or whatever) and then you would apply:

Code:
margin: auto;
To it, which would center the holder div horizontally. You could then put your content inside the holder div, and it would be inside your content area on the background.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed