Help - Search - Members - Calendar
Full Version: Unable to display list items inline and with no bullet
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
tkburton
I formatted my social links as unordered list items, and can't figure out how to display them next to eachother without bullets.

Link to site: http://surfguardtv.com/#connect

Here is my HTML:

<div class="content">
<div id="connect">
<ul>
<li>
<a href="https://www.facebook.com/surfguardtv/"><img alt="FB LOGO" height="200px" src="/img/FB%20LOGO.png" width="200px"></a>
</li>
<li>
<a href="https://www.instagram.com/surfguardtv"><img alt="IG LOGO" height="200px" src="/img/IG%20LOGO.png" width="200px"></a>
</li>
<li>
<a href="https://www.youtube.com/channel/UCUeDzkpWcM9ogocPhA_0Erw"><img alt="YOUTUBE LOGO" height="200px" src="/img/YOUTUBE%20LOGO.png" width="200px"></a>
</li>
<li>
<a href="https://www.imdb.com/title/tt12848840/"><img alt="IMDB LOGO" height="200px" src="/img/IMDB%20logo.png" width="200px"></a>
</li>
<li>
<a href="https://open.spotify.com/album/6us2Zh2yoXvYI29IeqfseJ?si=xxZ6lFPUTAWKbcY4gESCaw"><img alt="SPOTIFY LOGO" height="200px" src="/img/SPOTIFY%20LOGO.png" width="200px"></a>
</li>
</ul>
</div>
</div>

And CSS:

#connect {
padding-left: 200px;
background-color: #9ec1bd;
height: 800px;
margin-top: 100px;
}

#connect ul {
list-style: none;
display: inline;
}

I'm going crazy over here... what am i doing wrong?

Christian J
Try applying the CSS to the LI elements instead of the UL.
tkburton
No luck using #connect li or #connect ul
tkburton
For some reason my updated stylesheet isnt reflecting any CSS for these elements when i inspect the page using DevTools. I'm uploading the files using cpanel. Maybe I'm doing something wrong there..
pandy
QUOTE(tkburton @ Sep 18 2020, 10:07 PM) *

No luck using #connect li or #connect ul


Then you have a typo somewhere.

CODE
For some reason my updated stylesheet isnt reflecting any CSS for these elements when i inspect the page using DevTools. I'm uploading the files using cpanel. Maybe I'm doing something wrong there..


Or that. Look at it locally first so you know if it works.
tkburton
I'm pretty sure I don't have a typo. But maybe? Is there any reason that CSS block (for #connect li) wouldn't show up in DevTools?

How do I look at it locally if the files are stored on the server? Do I have to change the file names every time?

Just starting out with all of this so any tips are appreciated!
tkburton
update: cleared my cache and i can see the edits to my CSS now. It's working!

Thanks.
pandy
Good.

About viewing locally, didn't you create the files on your own computer first? Do you use some online editor in cPanel? It's much better to create your documents in a real editor on your own machine. It's also better to upload them with FTP than through a web interface (if that's what you have done). If you have cPanel you should also have FTP. Unless you mean just any control panel and not the rather expensive one called cPanel.
tkburton
Yes I'm using atom and created everything locally. I then uploaded the files through cpanel and had to change the names in my code bc they had a diff path when uploaded to the server.

Will FTP change the paths for me automatically?
tkburton
If more background info would help: I'm doing this (for the first time!) for a friend who secured the domain and hosting via Godaddy, which includes cPanel. I'm using cPanels "File Manager" to upload everything. But now that I've changed the path names in my Atom file, I can't view it locally. So I'm making edits and uploading them after every edit. It feels so clumsy and I know I'm doing it wrong! But not sure of the best way..

Thank you so much for your help!
pandy
QUOTE(tkburton @ Sep 18 2020, 11:27 PM) *

Yes I'm using atom and created everything locally. I then uploaded the files through cpanel and had to change the names in my code bc they had a diff path when uploaded to the server.

Will FTP change the paths for me automatically?


No. It's just a more convenient way to upload.

The trick is to keep the same directory structure on your hard drive as on the server. Then relative URLs will work in both places.

Or did you use Windows paths locally maybe? The ones with the backslashes? Don't do that. It just means trouble.

If you need it...
https://htmlhelp.com/faq/html/basics.html#relative-url
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2020 Invision Power Services, Inc.