| | |
margin in css
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2009
Posts: 17
Reputation:
Solved Threads: 0
css Syntax (Toggle Plain Text)
margin-left:auto; margin-right:auto;
Last edited by peter_budo; Nov 4th, 2009 at 7:36 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)
0
#6 Nov 3rd, 2009
To center a page you should use this CSS
This >>> margin: 0 auto; <<< Will center whatever CCS section its in. If you want something to move left or right then you replace this with the or elements.
Hope this helps.
I am a Web Developer and all the developers I know use this software. Its Open Source (Free) and shows you bugs in all Internet Explorer from IE5, 6, 7 & 8
Its called IETester and you can download it from here >>> IETester
HTML and CSS Syntax (Toggle Plain Text)
#header { margin: 0 auto; } #wrapper { margin: 0 auto; } #footer { margin: 0 auto; }
This >>> margin: 0 auto; <<< Will center whatever CCS section its in. If you want something to move left or right then you replace this with the
HTML and CSS Syntax (Toggle Plain Text)
float: left;
HTML and CSS Syntax (Toggle Plain Text)
float: right;
Hope this helps.
I am a Web Developer and all the developers I know use this software. Its Open Source (Free) and shows you bugs in all Internet Explorer from IE5, 6, 7 & 8
Its called IETester and you can download it from here >>> IETester
Last edited by Wrams; Nov 3rd, 2009 at 5:18 pm.
0
#8 Nov 3rd, 2009
Right click on your websites homepage or where ever the problem lies and then select View Source then go right to the top and copy the code Doctype Decleration here.
That way we can see if its got a mis type or something.
That way we can see if its got a mis type or something.
•
•
Join Date: Oct 2009
Posts: 17
Reputation:
Solved Threads: 0
0
#9 Nov 3rd, 2009
i closed it without saving so i can't get it.
0
#10 Nov 3rd, 2009
I don`t find any problem!
_____________________________________________________
Sereyboth and Blogging | Blogging Tip & Trick | Interview | Free Blog Template
Sereyboth and Blogging | Blogging Tip & Trick | Interview | Free Blog Template
![]() |
Similar Threads
- word-spacing (HTML and CSS)
- CSS Margin Problem (HTML and CSS)
- CSS Negative Margin (HTML and CSS)
- IE quirk-no images showing on my index page (HTML and CSS)
- padding vs margin? (HTML and CSS)
- Review of e-Commerce Site for Fireplaces (Website Reviews)
- How to have the div layer center on any browser? (JavaScript / DHTML / AJAX)
- Need help with table problem, urgent. (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: Different Monitor resolutions changing layout! Help
- Next Thread: Why font-size is affecting the gap between divs in this example?
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl





