www.webdeveloper.com
Results 1 to 3 of 3

Thread: Extrenal CSS and Div problem.

  1. #1
    Join Date
    Nov 2011
    Location
    Missouri
    Posts
    17

    Extrenal CSS and Div problem.

    I'm new to web development, the syntax mianly. I added an external style sheet to test things out. I'm added a div id to that style sheet that has some random nonsense to see how it works but it's not working in my index.html. The style sheet IS working properly because it changes the body background color, but not the div stuff. What am I doing wrong here?

    index.html
    HTML Code:
    <!doctype html>
    
    <html>
    
    
    	<head>
    		<link rel="stylesheet" href="mainStyle.css">
    	</head>
    	
    
    	<body>
    		<div id="divLogin">
    			Login
    		</div>
    	</body>
    
    
    </html>
    mainStyle.css
    HTML Code:
    body{background-color:#FFFFB8;}
    
    #divLogin(
    	border:2px solid red;
    	position:absolute;
    	width:300px;
    	top: 200px;
    	left: 300px;
    )

  2. #2
    Join Date
    Aug 2006
    Posts
    1,897
    Unless my eyes are failing me, you've surrounded your divLogin styles with parens (...) rather than braces {...}

    Dave

  3. #3
    Join Date
    Nov 2011
    Location
    Missouri
    Posts
    17
    Quote Originally Posted by tracknut View Post
    Unless my eyes are failing me, you've surrounded your divLogin styles with parens (...) rather than braces {...}

    Dave
    -Facepalm.- >_< Oh wow, thanks. Sorry for the stupid question.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles