Mobile app version of vmapp.org
Login or Join
Bryan171

: Will inserting dummy hidden text via CSS for layout purposes harm SEO? I have a website with a rather complicated input form, which can vary a lot (it has different fields depending on what

@Bryan171

Posted in: #Content #Css #HiddenText #Penalty #Seo

I have a website with a rather complicated input form, which can vary a lot (it has different fields depending on what the user has entered until now). When I was making the CSS, I noticed that there is a div which will not render when it's empty, and due to the complicated structure, break all the other divs around it - but it is legal for it to be empty. In fact, it not only needs to have content, but also to have at least enough content to be as high as the neighboring div for the design to align properly.

The hack I came up with was to use a css::after pseudo-element, and stuff it with several paragraphs of content. I gave the text an invisible color, rgba(0, 0, 0, 0), so it won't appear to the user. I know this is an ugly hack, but I'm not good at CSS (we have no professional designer), the site is really complicated, and the project is already late.

Now I read somewhere that search engines think that this is a trick to add more keywords to a website, and penalize invisible text severely. Is this always true? Will this thing trip me up? Do they ever notice text which is added in a CSS::after element instead in the normal markup?

This is only there on the input form, which Google doesn't have to index. But I wonder if it will penalize the whole site if it ever gets on it?

I am just using a few paragraphs of pure Lorem Ipsum. No links in it, no keywords, nothing. It is only there for the alignment.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Bryan171

2 Comments

Sorted by latest first Latest Oldest Best

 

@Sims2060225

Webmasters use CSS to design their websites without using HTML and they are also using techniques to hide the content from web crawlers.

But, you need to know that Search engines do not want to be fooled by designers and that is why they have started indexing CSS files. When crawlers finds something messy and stuffed, they may penalize it.

The only rule in internet marketing is not to cheat the Google bots. If you do something spammy and think that you will never get caught then you are wrong.

10% popularity Vote Up Vote Down


 

@Heady270

Google doesn't index text that is contained in CSS. Google only cares about text that it indexes that users then can't find when they land on your site. You should be fine.

To be doubly sure that it won't cause problems, use symbols like = = = = = = = = = = = =... to fill up the div. Even if Google does end up indexing CSS after text at some point, they won't index non-words.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme