Angarak Posted July 14, 2008 Share Posted July 14, 2008 To center a block element with a fixed width, you can set the left and right margins to auto, for example: div.center { width: 700px; margin-left: auto; margin-right: auto; } content... Alternatively, if the block element is contained within another element, then you can use the text-align property. div.container { text-align: center; } Centered DIV with content... On another note, if your not using any XML data sources to generate content, you could switch from XHTML Strict to HTML 4.01 Strict. If you stay with XHTML, any embedded scripts in your pages should be placed within [CDATA] tags. Ideally from a maintenance point of view you would place all scripts in one file and reference it externally via script tags: See http://www.webmasterworld.com/forum91/121.htm for more info. You may also want to check this out also: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.inlinephotography.co.uk%2F&charset=(detect+automatically)&doctype=Inline&group=0 Good luck with it, its coming along well Quote Link to comment Share on other sites More sharing options...
creative Posted July 15, 2008 Share Posted July 15, 2008 I know..theres two reason's ...i needed a logo so it could be cut in vinyl that couldnt unfortunately, and secondaly i forgot to save it If you post it up again, ill put it on some of the pages Ill sort the caps out aswell.. Cheers Guys. just for you fella... Quote Link to comment Share on other sites More sharing options...
stevie_b Posted July 15, 2008 Share Posted July 15, 2008 just for you fella... That logo looks much better. The black looks blacker, and there's no aliasing. Quote Link to comment Share on other sites More sharing options...
Mr. Fish Posted July 15, 2008 Author Share Posted July 15, 2008 To center a block element with a fixed width, you can set the left and right margins to auto, for example: div.center { width: 700px; margin-left: auto; margin-right: auto; } content... Alternatively, if the block element is contained within another element, then you can use the text-align property. div.container { text-align: center; } Centered DIV with content... On another note, if your not using any XML data sources to generate content, you could switch from XHTML Strict to HTML 4.01 Strict. If you stay with XHTML, any embedded scripts in your pages should be placed within [CDATA] tags. Ideally from a maintenance point of view you would place all scripts in one file and reference it externally via script tags: See http://www.webmasterworld.com/forum91/121.htm for more info. You may also want to check this out also: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.inlinephotography.co.uk%2F&charset=(detect+automatically)&doctype=Inline&group=0 Good luck with it, its coming along well Im sorry, i really dont have a clue what you just said lol Cheers for putting the pic up mate..put it on the homepage, and will get round to changing the others aswell...may get some of them cut up in vinyl ....im sure you would like the logo you designed on your car lol Still cant get it too look right tho.. Rob Quote Link to comment Share on other sites More sharing options...
MarkR Posted July 15, 2008 Share Posted July 15, 2008 Hi Mr Fish A few points which are completely my own opinion so you can tell me to get stuffed if you like. 1. I'm not keen on the way the tabs shift around once you click on them. 2. The white background on your homepage doesn't match the white in your new logo. I think the background may be a different colour but I haven't viewed the source to check. Cheers Mark Quote Link to comment Share on other sites More sharing options...
Mr. Fish Posted July 15, 2008 Author Share Posted July 15, 2008 Hi Mr Fish A few points which are completely my own opinion so you can tell me to get stuffed if you like. 1. I'm not keen on the way the tabs shift around once you click on them. 2. The white background on your homepage doesn't match the white in your new logo. I think the background may be a different colour but I haven't viewed the source to check. Cheers Mark im not going to lol..about the links..i cant get them to work any other way, and the logo, the is a little difference..is it that obvious..could also be that creative made it and it may of changed slightly...??! Quote Link to comment Share on other sites More sharing options...
MarkR Posted July 15, 2008 Share Posted July 15, 2008 If it was me, I'd set the background to white as it's the first thing I noticed. I'm of the opinion that simple is usually better and the white with the logo would look good. The menu's jumping around definitely bugged me. PM me the source and maybe I can have a little look at it for you (if you have it). Cheers Mark Quote Link to comment Share on other sites More sharing options...
arvind8811 Posted July 15, 2008 Share Posted July 15, 2008 If it was me, I'd set the background to white as it's the first thing I noticed. I'm of the opinion that simple is usually better and the white with the logo would look good. The menu's jumping around definitely bugged me. PM me the source and maybe I can have a little look at it for you (if you have it). Cheers Mark you do Web Development Mark? Quote Link to comment Share on other sites More sharing options...
MarkR Posted July 15, 2008 Share Posted July 15, 2008 you do Web Development Mark? I'm in IT but on the infrastructure side, but I dabble in scripting and some dev work... pays to know something about everything Quote Link to comment Share on other sites More sharing options...
arvind8811 Posted July 15, 2008 Share Posted July 15, 2008 I'm in IT but on the infrastructure side, but I dabble in scripting and some dev work... pays to know something about everything Thats fair enuf , i do some web development myself Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.