Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

My own personal noob thread

Featured Replies

So at last I've dragged myself back into the realm of web design :D . Whenever I've attempted to learn it before I've always had my attention diverted by a fluffy dog or a shiny coin and every time I come back to it I'm reminded of how fascinating it is! Well it won't happen this time. And this is where you come in :) . Don't let me quit. If you've got any motivation hints and tips I'll gladly accept them. I think more than anything I need to set realistic goals, achieve them and then move a bit further.

 

Having spent some time completing CSS tutorials I really feel its making sense in my head, I just have to put it all into practice and hand code a half-decent looking site. But the important thing is I can imagine myself doing that.

 

If its kosher I thought I might make a thread all to myself as I expect to have lots of embarassing questions (although I know full well you're a lovely bunch and you'll understand :) ) which shouldn't be unleashed on an unprepared world. :rolleyes:

 

Tonight's questions are as follows:

 

Is it possible to use an ordered list, i.e. <li>, without a bullet point showing? Also is it possible to change how the bullet point looks?

 

Secondly, is there a pseudo class which designates what colour a link will be if it is the current page being viewed? Say the user is on the 'About' page, I want the 'About' link to be highlighted. If its a bit complex, we'll forget it. I want to keep things as simple as I possibly can for now!

 

Thanks! B)

Is it possible to use an ordered list, i.e. <li>, without a bullet point showing? Also is it possible to change how the bullet point looks?

 

li { list-style: none; }

 

Change the none to one of many available choices, or a custom bullet point using the url(address)

 

Secondly, is there a pseudo class which designates what colour a link will be if it is the current page being viewed? Say the user is on the 'About' page, I want the 'About' link to be highlighted.

 

Best method would depend on how your site is coded.

 

For static pages (normal HTML):

 

add class="current" to the link in the navigation for the page you're on, and style it in the css as follows:

 

.current { color: red; text-decoration: underline; font-weight: bold;} or however you want it to look.

 

It gets a little bit more complex if you're using php and includes etc

 

HTH

  • Author

I'm trying to understand the fundamentals of CSS positioning. I hear a lot of talk about using a wrapper (I think some call it a container). As I understand it this is a div which holds all your other divs together (div probably isn't the best term to use, but I think you know what I mean). Its essentially a block on the page and all other 'blocks' are positioned relative to it. Is this about right?

 

Is it essential to have a wrapper? If not then, when wouldn't you need one? Could someone include the CSS for a simple wrapper and explain why its like this. Some of the ones I've seen are given a definitive height and width in pixels (but isn't sizing things in pixels a bit nightmare-ish considering vastly differing resolutions?).

 

If you were feeling particularly charitable you could include the code for a full (simple!) layout and explain the reasoning behind it.

 

I could go on revealing my lack of knowledge but that'll do for now. :D

 

Thank you!

It sounds about right to me.

 

I suppose it's not essential; my first site didn't have one. It was just a single column with a nav bar at the top.

 

Here's the code from my very first website version;

 

html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta http-equiv="Content-Language" content="en-gb" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="description" content="Welcome to Fisher Carpentry Limited; Quality Carpentry For the Midlands" />
<meta name="keywords" content="carpentry cannock, carpentry midlands, fisher carpentry, David Fisher, carpenter, carpentry, midlands, cannock, tradesmen, building, renovation, conversion, development, bespoke" />
<title>Fisher Carpentry's Website</title> 
<link rel="stylesheet" type="text/css" href="web.css" />

</head>

<body>


<h1>Welcome to Fisher Carpentry Limited</h1>
<h2>Quality Carpentry services for the Midlands</h2>

<ul class="toolbar">
<li><a href="index.html">Home</a></li>
<li><a href="meettheteam.html">Meet The Team</a></li>
<li><a href="moreaboutus.html">More About Us</a></li>
<li><a href="projectexamples.html">Project Examples</a></li>
<li><a href="contactus.html">Contact Us</a></li>
<li><a href="whatsnew.html">What's New?</a></li>
<li><a href="friends.html">Friends</a></li>
</ul>
<div id="page"><p>We hope you will chose us because we carefuly monitor and control standards of work. We also pride ourselves as being professional, reliable and competitive.</p>

<p>The aim of our website is to;</p>
<ul class="a">
 <li><a href="meettheteam.html">Introduce you to our team</a></li>

 <li><a href="moreaboutus.html">Explain to you what we do</a></li>

 <li><a href="projectexamples.html">Show you the type and quality of our work</a></li>

 <li><a href="contactus.html">Give you our contact details</a></li>

 <li><a href="whatsnew.html">Keep you updated on our new projects</a></li>

 <li><a href="friends.html">Give you details of our building buddies</a></li>
</ul>

<p>If you have any comments about this website, or you would like to contact the WebMaster about it's content or how it runs in your browser, you can contact her <a href="mailto:rosieguezala@yahoo.co.uk">here</a>.</p>

<ul class="c">
<li><a href="http://jigsaw.w3.org/css-validator/">
<img style="border:0; width:88px; height:31px"
	src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
	alt="Valid CSS!" />
</a></li>

<li><a href="http://validator.w3.org/check?uri=referer">
<img style="border:0;  width:88px; height:31px"
	src="http://www.w3.org/Icons/valid-xhtml10-blue"
	alt="Valid XHTML 1.0 Strict" /></a></li>
</ul>

</div>
</body>
</html>

 

CSS

p {  color: black;
text-align: left;
}

p b { color: navy; }
li { color: black; }

a.link {color: blue; }
a.visited {color: purple; }

a.active {color: gray; }

a.hover {color: red; }
body {	
font-size: 0.9em;
color: black;
background-colour: white;
  font-family: arial, helvetica;
	letter-spacing: 0.1em;
	word-spacing: 0.2em;
line-height: 1.5;
text-align: center
}
h1 {	
color: #ffd700;
background: #0000cd;
border: 1px solid;
margin-left: 7em;
margin-right: 5.5em; 
padding: 0.2em;

}

h2 {	
color: #0000cd;
background: #ffd700;
border: 1px solid;
margin-left: 11em;
margin-right: 9em; 
padding: 0.2em;
}
h3 {
text-align: center;
}


.toolbar li {

display:inline;
background: #d3d3d3;
border:1px solid;
border-color: black;
margin:0;
padding:.5em;
}
.a li{
list-style-type: disc;
padding: 0;
margin: 0;
text-align: left;
}
.b li{
list-style-type: circle;
padding: 0;
margin: 0;
text-align: left;
}
.c li{
display:inline;
}

div#page{
width: 700px;
margin-left: auto;
margin-right: auto;
background-color: white;
border: none;
padding: 0;
}

 

Only one div! LOL

 

Hope this helps :)

 

Please remember this was my first ever ever attempt so prob not the best although I think it validates.

 

Edit: oops think i misunderstood and gave u wrapperless example :(

An example;

 

 

XHTML

<html>
<body>
<div id="wrapper">

<div id="banner">
<img src="banner.jpg" />
</div><!-- banner -->

<div id="navigation">
<ul>
<li>Page</li>
<li>Page</li>
<li>Page</li>
</ul>
</div><!-- navigation -->

<div id="content">
<p>Hello</p>
</div><!-- content -->

<div id="footer">
© Mr. Basic Websites
</div><!-- footer -->

</div><!-- wrapper-->
</body>
</html>

 

CSS

#wrapper { width: 600px; height: 600px; }
#banner { width: 600px; height: 100px; margin-bottom: 15px; }
#navigation { width: 600px; height: 40px; margin-bottom: 15px; }
#content { width: 600px; height: 400px; }
#footer { width: 600px; height: 30px; }

 

Good luck!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.