Click here to Skip to main content
15,892,005 members
Home / Discussions / Web Development
   

Web Development

 
QuestionLocalization using Perl or HTML [modified] Pin
srinivasaRaoS29-May-06 1:55
srinivasaRaoS29-May-06 1:55 
Questionembedding of asp and applets [modified] Pin
cnr36929-May-06 1:49
cnr36929-May-06 1:49 
Questionie and firefox onload event mismatch Pin
ritu432129-May-06 1:08
ritu432129-May-06 1:08 
QuestionIntegration of asp and applet Pin
cnr36929-May-06 0:24
cnr36929-May-06 0:24 
QuestionForums Help Pin
psychohans28-May-06 21:08
psychohans28-May-06 21:08 
AnswerRe: Forums Help Pin
Shog928-May-06 22:07
sitebuilderShog928-May-06 22:07 
QuestionCrystalReports Pin
aby.m.a28-May-06 20:40
aby.m.a28-May-06 20:40 
QuestionCSS problems [modified] Pin
Megan Forbes28-May-06 18:05
Megan Forbes28-May-06 18:05 
Hi guys,

Having always been in the fortunate position to work in a team where we've had a designer I've never paid too much attention to designing stylesheets, etc (yep, I am gaining a newfound respect for designers Blush | :O )

Anyway, I've started out with a stylesheet and a single default.aspx page, and some elements on my default page work great, others don't:

body <br />
{<br />
    background-repeat: repeat-x;<br />
	margin: 1;<br />
	padding: 0;<br />
	text-align: center;<br />
	font-family: verdana, arial, helvetica, sans-serif;<br />
	font-size: 0.9em;<br />
	color: #575757;<br />
	width: 800px;<br />
	border: double: 3px 3px 3px 3px: #5f5bb2;<br />
}


The margin is great, the text aligns in the center, the font displays nicely as verdana, the font color and size are great. However, the border doesn't display and although text on my page is centered, images aren't. Am I incorrect in thinking that text-align: center; should align everything on the page in the center?

What I'm actually hoping to do is have an 800px centered body, and that containing a div with text aligned to the left so that there's always equal space on either side of the main body, regardless of monitor size, but the text is left aligned.

I really should have taken more notice of what the design team were up to. Thanks for any help Smile | :)





A mum and loving it!

-- modified at 0:06 Monday 29th May, 2006

I forgot to say - the images I'm hoping to center this way atm are my banner and links images, so they're 800px wide. Thanks!
AnswerRe: CSS problems [modified] Pin
Guffa28-May-06 19:04
Guffa28-May-06 19:04 
GeneralRe: CSS problems [modified] Pin
Megan Forbes28-May-06 20:16
Megan Forbes28-May-06 20:16 
AnswerRe: CSS problems [modified] Pin
Guffa28-May-06 21:33
Guffa28-May-06 21:33 
GeneralRe: CSS problems [modified] Pin
Megan Forbes29-May-06 0:02
Megan Forbes29-May-06 0:02 
AnswerRe: CSS problems [modified] Pin
Shog928-May-06 20:17
sitebuilderShog928-May-06 20:17 
GeneralRe: CSS problems Pin
Megan Forbes28-May-06 20:21
Megan Forbes28-May-06 20:21 
GeneralRe: CSS problems Pin
Shog928-May-06 20:25
sitebuilderShog928-May-06 20:25 
GeneralRe: CSS problems Pin
Megan Forbes28-May-06 23:46
Megan Forbes28-May-06 23:46 
GeneralRe: CSS problems Pin
Megan Forbes28-May-06 23:55
Megan Forbes28-May-06 23:55 
AnswerRe: CSS problems [modified] Pin
Guffa28-May-06 21:19
Guffa28-May-06 21:19 
GeneralRe: CSS problems Pin
Shog928-May-06 22:00
sitebuilderShog928-May-06 22:00 
GeneralRe: CSS problems [modified] Pin
Richard Parsons30-May-06 5:14
Richard Parsons30-May-06 5:14 
AnswerRe: CSS problems [modified] Pin
Guffa30-May-06 23:02
Guffa30-May-06 23:02 
GeneralRe: CSS problems [modified] Pin
Richard Parsons31-May-06 11:27
Richard Parsons31-May-06 11:27 
GeneralRe: CSS problems [modified] Pin
Megan Forbes31-May-06 2:14
Megan Forbes31-May-06 2:14 
GeneralRe: CSS problems [modified] Pin
Shog931-May-06 4:19
sitebuilderShog931-May-06 4:19 
GeneralRe: CSS problems [modified] Pin
Megan Forbes31-May-06 12:55
Megan Forbes31-May-06 12:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.