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.

In-line vs external CSS

Featured Replies

Inline is in the page, exteral is in a seperate document

External CSS saves you time, and saves download time

Inline is in the page, exteral is in a seperate document

External CSS saves you time, and saves download time

 

Also inline css will take precedence over an external stylesheet.

 

Pat

Also inline css will take precedence over an external stylesheet.

 

Pat

Wrong,

What ever comes last is used. Example:

<style>
h1 {
color: #fff;
}
</style>
<link rel="stylesheet" type="text/css" media="all" href="index.css" />
<h1>WELCOME</h1>

 

The external document will be used to color the title.

Wrong,

What ever comes last is used. Example:

<style>
h1 {
color: #fff;
}
</style>
<link rel="stylesheet" type="text/css" media="all" href="index.css" />
<h1>WELCOME</h1>

 

The external document will be used to color the title.

 

Not sure if I am right here but I am sure inline means actually inline example.

 

<p font-size="16px">Text</p>

 

Will then overwrite whatever was in the external stylesheet for the p tag.

There's also the cardinal sin of:

<p style=" color: red; font-size: 16pt; ">Some text</p>

This is what most people refer to as inline styles.

I know what you mean. Tried to code a table for the first time recently and couldn't for the life of me figure it out immediately. Took some time and a bit of reference material before I could get it running right! :lol:

Ahh! okay!

In that case inline CSS is only useful for testing, only time I use it.

Ahh! okay!

In that case inline CSS is only useful for testing, only time I use it.

Just don't use it at all! Editing the external style sheet rather than the main HTML document has to be much easier for building and testing IMHO.

  • Author

Thanks for the reply..

but can you tell me in more detail....

You've had quite enough of people's time already with these one line questions. Now JFGI for more...

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.