CSS - How Do I Put Css On My Webpage
hi every one i am kind of new to this i am making a website but how do you put css on you webpage i am using web page maker
and i want to put a table on my website just take a look at tothegame.com and see their table for games and stuff and i also want to use the search function and the filter and the abcdfg function how do i get or where do i get that kind of tables for my website its amovie site and i want to use that as a list for my movies that people can choose and filter by name or released date hope that ssomebody can help me out thanks Similar TutorialsI am trying to make a 3 column web page. I have the middle column, but when I add the code below for the left and right columns, nothing shows up. Is this the wrong code? Do I need to wrap them in certain tags? Thanks for your help! Website: www.freewebs.com/weareamazing Code: #sidebar-a { float: left; width: ; margin: 0; margin-right: ; padding: 5px; background-color: white; } #sidebar-b { float: right; width: ; margin: 0; margin-left: ; padding: 5px; background-color: white; } hello guys, I am creating a webpage using CSS for my layout. when I look at the page, it seems ok but all my "DIV" are positoned relative to the left side of the screen. so if you maximize the screen, you get a huge space on the far right side of the screen. I was wondering if there is anyway I can centre the page in the window no matter the size of the screen. I have provided a link to a version of the page and the CSS file is included here. each id represents a DIV in the design. http://www.radien.plus.com/test.html thanks guys Code: #Logo { Margin : 0; Padding : 0; Width : 125px; Height : 125px; Border-color : aqua; Border-top-width : medium; Border-right-width : medium; Border-bottom-width : medium; Border-left-width : medium; Border-top : 1px solid#00; Border-bottom : 1px solid#00; Border : 1px solid#00; Border-left : 1px solid#00; Border-right : 1px solid#00; } #news { Font-family : Arial , Helvetica , Sans Serif; Font-size : 80%; Font-weight : normal; Margin : 0; Border-top-width : medium; Border-right-width : medium; Border-bottom-width : medium; Border-left-width : medium; Width : 150px; Height : 250px; position : absolute; top : 140px; Padding : 3; Margin-top : 0; Text-indent : 3px; Border-top : 1px solid#00; Border-right : 1px solid#00; Border : 1px solid#00; Border-left : 1px solid#00; Border-bottom : 1px solid#00; } #Products { Font-family : Arial , Helvetica , Sans Serif; Font-size : 80%; Font-weight : normal; Margin : 0; Border-top-width : medium; Border-right-width : medium; Border-bottom-width : medium; Border-left-width : medium; Width : 150px; Height : 200px; position : absolute; top : 397px; Padding : 3; Margin-top : 0; Text-indent : 3px; Border-top : 1px solid#00; Border-right : 1px solid#00; Border : 1px solid#00; Border-left : 1px solid#00; Border-bottom : 1px solid#00; } #unknown { Font-family : Arial , Helvetica , Sans Serif; Font-size : 80%; Font-weight : normal; Margin : 0; Border-top-width : medium; Border-right-width : medium; Border-bottom-width : medium; Border-left-width : medium; Width : 150px; Height :150px; position : absolute; top : 605px; Padding : 3; Margin-top : 0; Text-indent : 3px; Border-top : 1px solid#00; Border-right : 1px solid#00; Border : 1px solid#00; Border-left : 1px solid#00; Border-bottom : 1px solid#00; } #banner { Font-family : Arial , Helvetica , Sans Serif; Font-size : 80%; Font-weight : normal; Margin : 0; Border-top-width : medium; Border-right-width : medium; Border-bottom-width : medium; Border-left-width : medium; Width : 604px; Height : 125px; position : absolute; left : 140px; Padding : 3; Margin-top : 0; Text-indent : 3px; Border-top : 1px solid#00; Border-right : 1px solid#00; Border : 1px solid#00; Border-left : 1px solid#00; Border-bottom : 1px solid#00; } #shopping { Font-family : Arial , Helvetica , Sans Serif; Font-size : 80%; Font-weight : normal; Margin : 0; Border-top-width : medium; Border-right-width : medium; Border-bottom-width : medium; Border-left-width : medium; Width : 125px; Height : 125px; position : absolute; top : 7px; left : 750px; Padding : 3; Margin-top : 0; Text-indent : 3px; Border-top : 1px solid#00; Border-right : 1px solid#00; Border : 1px solid#00; Border-left : 1px solid#00; Border-bottom : 1px solid#00; } #search { Font-family : Arial , Helvetica , Sans Serif; Font-size : 80%; Font-weight : normal; Margin : 0; Border-top-width : medium; Border-right-width : medium; Border-bottom-width : medium; Border-left-width : medium; Width : 150px; Height : 90px; position : absolute; top : 140px; left : 725px; Padding : 0; Text-indent : 3px; Border-top : 1px solid#00; Border-right : 1px solid#00; Border : 1px solid#00; Border-left : 1px solid#00; Border-bottom : 1px solid#00; } #poll { Font-family : Arial , Helvetica , Sans Serif; Font-size : 80%; Font-weight : normal; Margin : 0; Border-top-width : medium; Border-right-width : medium; Border-bottom-width : medium; Border-left-width : medium; Width : 150px; Height : 210px; position : absolute; top : 238px; left : 725px; Padding : 3; Margin-top : 0; Text-indent : 3px; Border-top : 1px solid#00; Border-right : 1px solid#00; Border : 1px solid#00; Border-left : 1px solid#00; Border-bottom : 1px solid#00; } #footer { Font-family : Arial , Helvetica , Sans Serif; Font-size : 80%; Font-weight : normal; Margin : 0; Border-top-width : medium; Border-right-width : medium; Border-bottom-width : medium; Border-left-width : medium; Width : 150px; Height : 210px; position : absolute; top : 238px; left : 725px; Padding : 3; Margin-top : 0; Text-indent : 3px; Border-top : 1px solid#00; Border-right : 1px solid#00; Border : 1px solid#00; Border-left : 1px solid#00; Border-bottom : 1px solid#00; } Hey guys so I'm trying to create a bar at the top of my webpage, except the left and right sides are different than the middle. So I thought I'd approach this by dividing up the webpage into three sections, left middle and right. Code: body { background-color:#B7E7F9; } /*Big Wrap*/ #mainwrap{ margin-top:0px; height: 100%; width: 100%; } /*Left Side*/ #leftwrap{ align: left; background:url(images/Left_Top_Bar.jpg) no-repeat; } /*Right Side*/ #rightwrap{ align: left; background:url(images/Right_Top_Bar.jpg) no-repeat; } /*Header*/ #header{ background:url(images/Top_Bar_Part.jpg) repeat-x; } I then implemented it in html Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>My Webpage</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="mainwrap"> <div id="leftwrap"></div> <div id="header"></div> <div id="rightwrap"></div> </div> </body> </html> Now when I open the html file in a browser, all I see is the background color that I put in for body, but none of my wraps seem to be displaying. I was also wondering if there was an easier way to do this. The header is just a simple rounded rectangle that is running across the entire top. I want the same rounded rectangle look for all users regardless of resolution. Thank you for your help, Popnbrown Hello everyone; I've been working on my webpage and I just noticed that my page loaded differently ( not aligned ) in my friends wide screen Laptop. I was hoping if anyone knows of a way to display the webpage properly no matter what resolution or screen? would this be done with css or just plain HTML? please let me know. thank you. mamut hello guys,, I was wondering how to make a webpage take the full browser size and not over flow or be smaller than the browser window also atleast 800 x 600 thnx for ur time.. HMV Hey Folks, I am a newbie with designing webpages and having some problems with a website that I just created. If any of you could point to a resource of help me out, that be great. Heres the link www.pcdigger.com The middle part is messed up in firefox. HTML and CSS both are validated per www.w3.org but I guess, that doesnt do anything for firefox. Thanks, DesignFlaw I have a QA site where I want to have a very translucent image displayed over the entire page to help our testers more visually recognize that the site they are on is not production (or worse thinking they are on QA when they are on production). My initial idea was to create a fixed position div with a repeating background images. While this visually accomplished what I want, it ends up masking the entire site, making it impossible to click on any links that are displayed underneath the QA images. What is the best way to do this (sans javascript)? Any help is much appreciated. Hello - this is my first time on the forum. I'm sure I must be missing something really simple. I'm not very experienced at CSS, and must admit I can't grasp the inherited properties principle, which may be the cause of my problem. I've pasted my code for the web page and my properties stylesheet below. Although, as you can see, I want to put a header near the top of the web page, nothing appears in my browser. (I mean nothing, the words I have put the header tag to just aren't there). I would be very grateful for some help. Thank you. The CSS validator says "Value Error : color attempt to find a semi-colon before the property name. add it" which I don't understand. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <head> <title>Love Local Food - about us</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="keywords" content="love local food, love local, love food, local food, exeter food, devon food, devon vegetables, exeter vegetables, local vegetables, real bread, slow food, slow food exeter, slow food devon, rye bread, good food, good local food, van food, van exeter, van devon, local van, mobile shop, workshops, workshop, farm, farms, organic, organic food exeter, fresh food, local fresh food, fresh food exeter, fresh food devon " /> <meta name="description" content="We sell good fresh food by van in your locality" /> <meta http-equiv="PRAGMA" content="NO-CACHE" /><!-- --> <link rel="stylesheet" type="text/css" href="layout.css" /> <link rel="stylesheet" type="text/css" href="presentation.css" /> </head> <body> <!-- Header --> <div id="bar-top"> <p class="links"> <a href="index.html">home </a> <a href="mobileshop.html">mobile shop </a> <a href="farms.html">farms </a> <a href="workshops.html">workshops </a> <a href="joinus.html">join us </a> <a href="aboutus.html">about us </a> <a href="contactus.html">contact us </a> </p> </div> <!-- end of header --> <!-- main column --> <div id="main"> <p> <img src="slice4.jpg" alt="love local food" border="0" width="400" height = "125" class="center" /></p> <p> <img src="logo.gif" alt="love local food" align="left" border="0" width="300" height="175" /></p> <p class="header">about love local food</p> <p> Love Local Food is a new social enterprise initiated by Emmas Bread, Shillingford Organics, West Town Farm and organicArts along with others including David Tuffield, David Bossano, Rachel Moffat, Nicola Beglin, Paula Garwood, Amber Dawkins and Chukumeka Maxwell.</p> <p class="text">We are a group of local producers, educators and passionate food lovers who propose to bring a new and simple way of shopping to Exeter and surrounding areas.</p> <p class="text">We first met in July 2007 with the intention of becoming a workers co-operative that supported each other in the produce and sale of locally grown food.</p> <p class="text">We want to provide local food to local communities, provide a fair return to local producers and provide links between the consumer and producer through educational activities and resources.</p> <p class="text">We want to help consumers make the connection between the food they eat and the environment in which they live, and to help local people achieve well being.</p> <p class="text">We look to a future of the sustainable production and distribution of food, including allotments and gardens, where we renew our relationship with food and nature, and share the land.</p> <p class="text">A future where local communities, schools and other institutions are involved in commissioning local food production, community celebrations and sharing with other cultures.</p> <p class="text">A future where we are all open to new ideas about food and our relationship with it.</p> <!--links-box--> <div id="links-box"> <p class="links"> <a href="emmasbread.html">emmas bread </a> </p> <p class="links"><a href="shillingford.html">shillingford organics </a></p> <p class="links"><a href="westtown.html">west town farm </a></p> <p class="links"><a href="organicarts.html">organicARTS </a> </p> </div> <!--end of links box--> </div> <!-- end of main column --> </body> </html> /* Presentation Stylesheet */ .header { font-family: Arial, Helvetica, sans-serif; font-size:20px; color:#000000 margin:0; padding:10px 10px 10px 15px; } .links { font-family: Arial, Helvetica, sans-serif; text-align:center; font-size:20px; color:#000000; } .links a:link { color: #560007; text-decoration:none; } .links a:visited { color: #EF9C00; text-decoration:none; } .links a:active { color:#560007; text-decoration:none; } .text { font-family: Helvetica, Arial, Verdana, sans-serif; font-size:15px; color:#000000; } I know it's probably something simple, but I'm having trouble centering my web page in CSS. I want to center it no matter what resolution a visitor has their monitor set to or the size of their monitor. I've tried the following to no avail: Code: margin-left: auto; margin-right: auto; margin-top: auto; margin-bottom: auto; Any suggestions? Hi, First I am a newbie for css and JS. I got a free code from web and developed the following site, http://www.rit.edu/~801www/BackupReliability/ The css and javascipt that I am using is not working properly in Mozilla. Could some one show me please how to fix it???? If you could see most of the text is over flowing in the scrolling area?? Can someone please give me some ideas. Thanks a million in advance. WOOW I would like to make a small 2 pixel border around my entire webpage. The code I'm using now doesn't seem to work. Can someone point me in the right direction? I've been looking and the code I am using now for the stylesheet is: <style type="text/css"> div.outline { background-color: #333333; border: 2px solid; width: 100%; border: thin solid red; } </style> and the html: <html> <head> <title>Test Page</title> <link rel="stylesheet" type="text/css" href="theme1.css" /> </head> <body> <div class="outline">a</div> </body> </html> There is an invoice preview webpage. I want to set header and footer information off while printing it. I know we can edit the page setup settings. But I wanted to know if we can do something without changing the default page setup settings. With default setting inside page setup, webpage title and webpage path are displayed for header and footer respectively. Thanks i can't seem to get my site to view properly in safari and ie, firefox seems to do a fine job (of course). the left and right sides should show a red shadowed bar but they are not in the browsers listed above. would someone check the css in firebug and tell me what's happening?? thank you in advance for any help! the site is greatfoodcoop.com I have a simple question that has been driving me insane - I have a very simple website that has a header div, and a table that shows a lot of information (imagine an Excel spreadsheet). The table stretches the website as long as the table is because it simply will not fit on any screen (I think it's about 4200px wide). This is the desired behaviour I want for this table. However, my header div, will only show 100% wide, the width of the screen before it scrolls. I need to extend it beyond the screen to however wide the website has been made from the dynamic table. Please advise, thank you. Hello, I tried to make a page with a header, left column and right column, as shown in the screenshot. http://img292.imageshack.us/my.php?image=screengr2.jpg You can see the code at the bottom. I used the faux-column technique to make the column colors extend to the bottom of the page. Is this a good way to do it? and does this method give problems with different resolutions on different computer-monitors. I used floats in this example to position the divs, is this a common solution or is absolute or relative positioning better? My goal is to teach myself a way to easily and effectively divide a webpage, so that I have a basic method, also in larger and more complex websites. I like to hear any tips/techniques to improve this. I used the folowing code: Code: <html> <body> <div class="wrapper"> <div class="header"> <br /><br /><br /><br /><br /> </div> <div class="left"> <img src="homer.jpg" /> </div> <div class="right"> <div class="nav"> <a href="home.htm">home</a> <!-- menubar --> </div> <div class="contents"> This is the contents of the page </div> </div> </div> </body> </html> and the css code Code: body{ background: url(fauxcolumn.jpg) 15% 0; margin: 0; padding: 0; } .header{ background-color: green; float: left; width: 100%; margin: 0%; padding: 0%; } .left{ background-color: purple; width: 15%; float: left; margin: 0%; padding: 0%; height: 100%; } .nav{ background-color: blue; width: 85%; float: left; margin: 0%; padding: 0%; } .contents{ float: left; width: 85%; margin: 0%; padding: 0%; background-color: red; } Thanks in advance. Hey all, I have a webpage w/a top, left column, and content column. The page has been designed using CSS. Is there anyway to load a seperate HTML page (of which I have no control) in my content column and keep the top (and possibly left) columns in place? Is there a way to do this w/CSS? (Basically I want frame functionality using CSS). So far my instincts say no... but before I spend too much time on solution I thought I'd check here. Thanks! BB I am using CSS to generate a printer-friendly webpage for Internet Explorer. The same CSS however is not working with Netscape or FireFox. I am using the following doctype in my html file. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> The contents within the <DIV> and <P> tags I am trying to hide using Print CSS works correctly in Internet Explorer 6.0. However, the contents are getting printed when Netscape 7.1 or FireFox is used. Can someone help? |